Re: [PATCH] Fix git-rev-parse's parent handling

2005-08-10 Thread Junio C Hamano
Johannes Schindelin <[EMAIL PROTECTED]> writes: > git-rev-parse HEAD^1 would fail, Thanks. Time to find a brown paper bag ;-). - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-

[PATCH] Fix git-rev-parse's parent handling

2005-08-09 Thread Johannes Schindelin
git-rev-parse HEAD^1 would fail, because of an off-by-one bug (but HEAD^ would yield the expected result). Also, when the parent does not exist, do not silently return an incorrect SHA1. Of course, this no longer applies to git-rev-parse alone, but every user of get_sha1(). While at it, add a t