* git-checkout doesn't understand -- separator
@ 2006-07-31 9:35 Jakub Narebski
2006-07-31 10:06 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Narebski @ 2006-07-31 9:35 UTC (permalink / raw)
To: git
git-checkout doesn't understand '--' as a separator between <branch> (which
is optional, but you can always write HEAD), and <path>...
1144:jnareb@roke:~/git> git checkout HEAD^ -- gitweb/gitweb.cgi
git-checkout-index: -- is not in the cache
Strange...
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git-checkout doesn't understand -- separator
2006-07-31 9:35 git-checkout doesn't understand -- separator Jakub Narebski
@ 2006-07-31 10:06 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-07-31 10:06 UTC (permalink / raw)
To: jnareb; +Cc: git
Jakub Narebski <jnareb@gmail.com> writes:
> git-checkout doesn't understand '--' as a separator between <branch> (which
> is optional, but you can always write HEAD), and <path>...
>
> 1144:jnareb@roke:~/git> git checkout HEAD^ -- gitweb/gitweb.cgi
> git-checkout-index: -- is not in the cache
>
> Strange...
Perhaps...
diff --git a/git-checkout.sh b/git-checkout.sh
index 5613bfc..580a9e8 100755
--- a/git-checkout.sh
+++ b/git-checkout.sh
@@ -67,6 +67,10 @@ while [ "$#" != "0" ]; do
set x "$arg" "$@"
shift
fi
+ case "$1" in
+ --)
+ shift ;;
+ esac
break
;;
esac
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-31 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-31 9:35 git-checkout doesn't understand -- separator Jakub Narebski
2006-07-31 10:06 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).