diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-01-07 10:51:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-07 15:13:21 -0800 |
commit | d0947483a3386204918447775b617ab3dac833b0 (patch) | |
tree | ebf413353ed17df3676a4ed77533e742f0bcf634 /Documentation/git-imap-send.txt | |
parent | ref-filter: add braces to if/else if/else chain (diff) | |
download | tgif-d0947483a3386204918447775b617ab3dac833b0.tar.xz |
ref-filter: move "cmp_fn" assignment into "else if" arm
Further amend code changed in 7c5045fc180 (ref-filter: apply fallback
refname sort only after all user sorts, 2020-05-03) to move an
assignment only used in the "else if" arm to happen there. Before that
commit the cmp_fn would be used outside of it.
We could also just skip the "cmp_fn" assignment and use
strcasecmp/strcmp directly in a ternary statement here, but this is
probably more readable.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-imap-send.txt')
0 files changed, 0 insertions, 0 deletions