author | Junio C Hamano <gitster@pobox.com> | |
Thu, 29 Nov 2007 00:15:04 +0000 (16:15 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 29 Nov 2007 00:41:18 +0000 (16:41 -0800) | ||
commit | 38762c47d6442dc0ce0f45533f9151877c485337 | |
tree | 23b98d604a03c5715938cec97fe3fed1bde08bc9 | tree | snapshot |
parent | 1e72a40de99be24809eba5abdab4c0b00846b9b5 | commit | diff |
scripts: do not get confused with HEAD in work tree
When you have a file called HEAD in your work tree, many commands that
our scripts feed "HEAD" to would complain about the rev vs path
ambiguity. A solution is to form command line more carefully by
appending -- to them, which makes it clear that we mean HEAD rev not
HEAD file.
This patch would apply to maint.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When you have a file called HEAD in your work tree, many commands that
our scripts feed "HEAD" to would complain about the rev vs path
ambiguity. A solution is to form command line more carefully by
appending -- to them, which makes it clear that we mean HEAD rev not
HEAD file.
This patch would apply to maint.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh | diff | blob | history | |
git-filter-branch.sh | diff | blob | history | |
git-merge-ours.sh | diff | blob | history | |
git-rebase--interactive.sh | diff | blob | history | |
git-rebase.sh | diff | blob | history | |
git-stash.sh | diff | blob | history |