git/refs
Michael Haggerty 841caad903 lock_ref_for_update(): avoid a symref resolution
If we're overwriting a symref with a SHA-1, we need to resolve the value
of the symref (1) to check against update->old_sha1 and (2) to write to
its reflog. However, we've already read the symref itself and know its
referent. So there is no need to read the symref's value through the
symref; we can read the referent directly.

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(): avoid a symref resolution 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