summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2021-01-12 13:27:43 +0100
committerJunio C Hamano <gitster@pobox.com>2021-01-12 12:06:15 -0800
commitc45889f10453864130ccbfa45815e2f4e384ab5e (patch)
tree8ca34d83ff300d9710499d778a7a24f371bef195 /commit.h
parent929d044575ed4f9657074f098e3a9be410d511ef (diff)
fetch: refactor `s_update_ref` to use common exit path
The cleanup code in `s_update_ref()` is currently duplicated for both succesful and erroneous exit paths. This commit refactors the function to have a shared exit path for both cases to remove the duplication. Suggested-by: Christian Couder <christian.couder@gmail.com> Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions