Code

[PATCH] Make sure git-resolve-script always works on commits
authorLinus Torvalds <torvalds@osdl.org>
Sat, 13 Aug 2005 17:50:56 +0000 (10:50 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 14 Aug 2005 01:28:50 +0000 (18:28 -0700)
commit02a4a32c2da9a89eb9ebc58325adcb47775c9ed5
tree87bf551ac035553ae59efa15d018a7d41a9bbf0c
parent314082512403f7f6969cc6d5ded4a48c68a9962e
[PATCH] Make sure git-resolve-script always works on commits

You can resolve a tag, and it does the right thing except that it might
end up writing the tag itself into the resulting HEAD, which will confuse
subsequent operations no end.

This makes sure that when we resolve two heads, we will have turned them
into proper commits before we start acting on them.

This also fixes the parsing of "treeish^0", which would incorrectly
resolve to "treeish" instead of causing an error.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-resolve-script
sha1_name.c