diff options
author | Brad King <brad.king@kitware.com> | 2013-09-04 11:22:40 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-04 11:08:36 -0700 |
commit | 4738a33338b837d4896b5e8d75e777f5e99a25cb (patch) | |
tree | 53cd1fc249c8e9c640c19aeb8edd0f0202152d8e /contrib/git-resurrect.sh | |
parent | refs: report ref type from lock_any_ref_for_update (diff) | |
download | tgif-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 'contrib/git-resurrect.sh')
0 files changed, 0 insertions, 0 deletions