summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-12-12 08:56:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-12 19:43:47 (GMT)
commit2e376b3156ff30dcd359b7c424fcbdbab5ec7709 (patch)
tree616f2e2ca0c1caa636ebfd0d078d12b533f2bc07 /parse-options.h
parent524127afbf8b98350bcebe3fc1f7600fce191716 (diff)
downloadgit-2e376b3156ff30dcd359b7c424fcbdbab5ec7709.zip
git-2e376b3156ff30dcd359b7c424fcbdbab5ec7709.tar.gz
git-2e376b3156ff30dcd359b7c424fcbdbab5ec7709.tar.bz2
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 'parse-options.h')
0 files changed, 0 insertions, 0 deletions