summaryrefslogtreecommitdiff
path: root/t/t4100/t-apply-9.expect
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2015-06-22 16:03:08 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-06-22 13:17:13 -0700
commita1c9eb918b9af809d75ee3206e684f3a8f29ee63 (patch)
tree471a0acc3474c24730cf7478b5ef3a36171b3a91 /t/t4100/t-apply-9.expect
parentcheck_branch_commit(): make first parameter const (diff)
downloadtgif-a1c9eb918b9af809d75ee3206e684f3a8f29ee63.tar.xz
update_ref(): don't read old reference value before delete
If we are deleting the reference, then we don't need to read the reference's old value. It doesn't provide any race safety, because the value read just before the delete is no "better" than the value that would be read under lock during the delete. And even if the reference previously didn't exist, we can call delete_ref() on it if we don't provide an old_sha1 value. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4100/t-apply-9.expect')
0 files changed, 0 insertions, 0 deletions