summaryrefslogtreecommitdiff
path: root/blob.h
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2016-06-07 09:29:23 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-20 11:49:00 -0700
commite3f510393c9d373f2969badc2b8afe179803a0fa (patch)
tree57c2b89dbd15141a4389ad0c463c28a9762c1d28 /blob.h
parentt1404: add more tests of update-ref error handling (diff)
downloadtgif-e3f510393c9d373f2969badc2b8afe179803a0fa.tar.xz
lock_ref_for_update(): make error handling more uniform
To aid the effort, extract a new function, check_old_oid(), and use it in the two places where the read value of the reference has to be checked against update->old_sha1. Update tests to reflect the improvements. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions