summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2016-06-07 09:32:08 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-20 11:49:00 -0700
commit841caad903f2b160e9f5ff05f961d20ad9085ddc (patch)
tree524afe94d06cefcf32c5d64b760615105127faff /templates
parentlock_ref_for_update(): make error handling more uniform (diff)
downloadtgif-841caad903f2b160e9f5ff05f961d20ad9085ddc.tar.xz
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>
Diffstat (limited to 'templates')
0 files changed, 0 insertions, 0 deletions