Skip to content

Commit 2608003

Browse files
author
Junio C Hamano
committed
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>
1 parent b63fafd commit 2608003

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-checkout.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ while [ "$#" != "0" ]; do
6767
set x "$arg" "$@"
6868
shift
6969
fi
70+
case "$1" in
71+
--)
72+
shift ;;
73+
esac
7074
break
7175
;;
7276
esac

0 commit comments

Comments
 (0)