]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/checkout.c
switch: stop accepting pathspec
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 29 Mar 2019 10:39:09 +0000 (17:39 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2019 04:56:59 +0000 (13:56 +0900)
commit5c06e26903fd69cf7a71bf2cf8281a84868525b0
tree76433aafa9e378c4f4f2d5a1f35c562be85175c5
parent492ededc263e48d1a261dd694642ca53be4939e4
switch: stop accepting pathspec

This command is about switching branch (or creating a new one) and
should not accept pathspec. This helps simplify ambiguation
handling. The other two ("git checkout" and "git restore") of
course do accept pathspec as before.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c