summaryrefslogtreecommitdiff
path: root/t/t1410-reflog.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2019-03-15 16:59:54 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-18 15:09:40 +0900
commitcd8eb3a094c51482c80a97589e4aff53af2c7c63 (patch)
treeed57f97b5a94f24af63ddaadaff914eea9aa105a /t/t1410-reflog.sh
parentgc: convert to using the_hash_algo (diff)
downloadtgif-cd8eb3a094c51482c80a97589e4aff53af2c7c63.tar.xz
gc: refactor a "call me once" pattern
Change an idiom we're using to ensure that gc_before_repack() only does work once (see 62aad1849f ("gc --auto: do not lock refs in the background", 2014-05-25)) to be more obvious. Nothing except this function cares about the "pack_refs" and "prune_reflogs" variables, so let's not leave the reader wondering if they're being zero'd out for later use somewhere else. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1410-reflog.sh')
0 files changed, 0 insertions, 0 deletions