diff options
author | 2021-04-12 19:15:19 +0200 | |
---|---|---|
committer | 2021-05-11 12:47:31 +0900 | |
commit | 03c1f14acf5169d8e6c06a60c28ee5a6cfb9fd54 (patch) | |
tree | e5b7b3b1c08f6d898e8d65582bb5bb0fc16f6d79 /t/t4106-apply-stdin.sh | |
parent | perf: add performance test for pickaxe (diff) | |
download | tgif-03c1f14acf5169d8e6c06a60c28ee5a6cfb9fd54.tar.xz |
pickaxe: refactor function selection in diffcore-pickaxe()
It's hard to read this codepath at a glance and reason about exactly
what combination of -G and -S will compile either regexes or kwset,
and whether we'll then dispatch to "diff_grep" or "has_changes".
Then in the "--find-object" case we aren't using the callback
function, but were previously passing down "has_changes".
Refactor this code to exhaustively check "opts", it's now more obvious
what callback function (or none) we want under what mode.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4106-apply-stdin.sh')
0 files changed, 0 insertions, 0 deletions