summaryrefslogtreecommitdiff
path: root/t/t5100/msg0002
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2016-09-05 20:08:08 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-09-07 12:59:43 -0700
commit8f6dc7e32eee2944d1490ff9bf12ec329f3b33c2 (patch)
tree6d04aad2e1144fdd97b1c394b88e2bfcd5158e45 /t/t5100/msg0002
parentsha1_name: convert get_sha1_mb to struct object_id (diff)
downloadtgif-8f6dc7e32eee2944d1490ff9bf12ec329f3b33c2.tar.xz
refs: add an update_ref_oid function.
Several places around the codebase want to pass update_ref data from struct object_id, but update_ref may also be passed NULL pointers. Instead of checking and dereferencing in every caller, create an update_ref_oid which wraps update_ref and provides this functionality. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/msg0002')
0 files changed, 0 insertions, 0 deletions