diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-12-22 05:06:47 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-22 16:24:14 -0800 |
commit | 7c28875bcd3c05dca34246e89c23a90898375592 (patch) | |
tree | 83d5cb65329230b3f52c708e556084f47339250f /t/t3700-add.sh | |
parent | reflog: reduce scope of "struct rev_info" (diff) | |
download | tgif-7c28875bcd3c05dca34246e89c23a90898375592.tar.xz |
refs files-backend: assume cb->newlog if !EXPIRE_REFLOGS_DRY_RUN
It's not possible for "cb->newlog" to be NULL if
!EXPIRE_REFLOGS_DRY_RUN, since files_reflog_expire() would have
error()'d and taken the "goto failure" branch if it couldn't open the
file. By not using the "newlog" field private to "file-backend.c"'s
"struct expire_reflog_cb", we can move this verbosity logging to
"builtin/reflog.c" in a subsequent commit.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3700-add.sh')
0 files changed, 0 insertions, 0 deletions