summaryrefslogtreecommitdiff
path: root/csum-file.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2005-08-10 03:07:36 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-10 17:22:49 (GMT)
commitef0bd2e6e643f09a8294937caf99463328b9215a (patch)
tree7c10e111b2709fe24f09527bab62ecfb441c44eb /csum-file.c
parentc35a7b8d806317dc1762e36561cbd31c2530dd9c (diff)
downloadgit-ef0bd2e6e643f09a8294937caf99463328b9215a.zip
git-ef0bd2e6e643f09a8294937caf99463328b9215a.tar.gz
git-ef0bd2e6e643f09a8294937caf99463328b9215a.tar.bz2
[PATCH] Fix git-rev-parse's parent handling
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 test. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'csum-file.c')
0 files changed, 0 insertions, 0 deletions