summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 788ea12)
raw | patch | inline | side by side (parent: 788ea12)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 25 Nov 2007 18:34:27 +0000 (10:34 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 25 Nov 2007 18:38:22 +0000 (10:38 -0800) |
When you have a file called HEAD in the work tree, the code to report
where the HEAD is at when "git checkout $commit^0" is done triggered
unnecessary ambiguity checking.
Explicitly mark the command line with "--" and make it clear that we are
talking about a revision.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
where the HEAD is at when "git checkout $commit^0" is done triggered
unnecessary ambiguity checking.
Explicitly mark the command line with "--" and make it clear that we are
talking about a revision.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-checkout.sh | patch | blob | history |
diff --git a/git-checkout.sh b/git-checkout.sh
index 17f43927aa7b766c1ba28150c4945fac7ff3e132..5ca71242e7e41662b2ab960566b2e5fa32e89da9 100755 (executable)
--- a/git-checkout.sh
+++ b/git-checkout.sh
describe_detached_head () {
test -n "$quiet" || {
printf >&2 "$1 "
- GIT_PAGER= git log >&2 -1 --pretty=oneline --abbrev-commit "$2"
+ GIT_PAGER= git log >&2 -1 --pretty=oneline --abbrev-commit "$2" --
}
}