git-commit-vandalism/refs
Michael Haggerty e3f510393c 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>
2016-06-20 11:49:00 -07:00
..
files-backend.c lock_ref_for_update(): make error handling more uniform 2016-06-20 11:49:00 -07:00
refs-internal.h lock_ref_for_update(): don't resolve symrefs 2016-06-13 11:23:50 +02:00