diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-12-12 09:56:45 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-12 11:43:47 -0800 |
commit | 2e376b3156ff30dcd359b7c424fcbdbab5ec7709 (patch) | |
tree | 616f2e2ca0c1caa636ebfd0d078d12b533f2bc07 /contrib/remote-helpers/README | |
parent | expire_reflog(): rename "ref" parameter to "refname" (diff) | |
download | tgif-2e376b3156ff30dcd359b7c424fcbdbab5ec7709.tar.xz |
expire_reflog(): return early if the reference has no reflog
There is very little cleanup needed if the reference has no reflog. If
we move the initialization of log_file down a bit, there's even less.
So instead of jumping to the cleanup code at the end of the function,
just do the cleanup and return inline.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers/README')
0 files changed, 0 insertions, 0 deletions