Skip to content

Commit

Permalink
git-checkout: allow "checkout HEAD -- path"
Browse files Browse the repository at this point in the history
Even though -- is redundant in this case, we should allow it to prevent
confusion.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jul 31, 2006
1 parent b63fafd commit 2608003
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ while [ "$#" != "0" ]; do
set x "$arg" "$@"
shift
fi
case "$1" in
--)
shift ;;
esac
break
;;
esac
Expand Down

0 comments on commit 2608003

Please sign in to comment.