summaryrefslogtreecommitdiff
path: root/git-gui/lib/branch_delete.tcl
diff options
context:
space:
mode:
authorLibravatar Brad King <brad.king@kitware.com>2013-09-04 11:22:40 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-09-04 11:08:36 -0700
commit4738a33338b837d4896b5e8d75e777f5e99a25cb (patch)
tree53cd1fc249c8e9c640c19aeb8edd0f0202152d8e /git-gui/lib/branch_delete.tcl
parentrefs: report ref type from lock_any_ref_for_update (diff)
downloadtgif-4738a33338b837d4896b5e8d75e777f5e99a25cb.tar.xz
refs: factor update_ref steps into helpers
Factor the lock and write steps and error handling into helper functions update_ref_lock and update_ref_write to allow later use elsewhere. Expose lock_any_ref_for_update's type_p to update_ref_lock callers. While at it, drop "static" from the local "lock" variable as it is not necessary to keep across invocations. Signed-off-by: Brad King <brad.king@kitware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/branch_delete.tcl')
0 files changed, 0 insertions, 0 deletions