Skip to content

Commit 0225de8

Browse files
author
Junio C Hamano
committed
Merge branch 'jc/checkout'
* jc/checkout: git-checkout: allow "checkout HEAD -- path"
2 parents 3e04228 + 2608003 commit 0225de8

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)