mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
git-checkout: allow "checkout HEAD -- path"
Even though -- is redundant in this case, we should allow it to prevent confusion. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
b63fafdfd8
commit
2608003f55
|
@ -67,6 +67,10 @@ while [ "$#" != "0" ]; do
|
|||
set x "$arg" "$@"
|
||||
shift
|
||||
fi
|
||||
case "$1" in
|
||||
--)
|
||||
shift ;;
|
||||
esac
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue