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>
Junio C Hamano committed
Jul 31, 2006 at 03:07 UTC
2608003f55ca3e02cfdcafbec54fdd325340a78e
1 file changed
+4
git-checkout.sh
+4
@@ -67,6 +67,10 @@ while [ "$#" != "0" ]; do
67
set x "$arg" "$@"
68
shift
69
fi
70
+ case "$1" in
71
+ --)
72
+ shift ;;
73
+ esac
74
break
75
;;
76
esac