diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-04-12 19:15:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-11 12:47:31 +0900 |
commit | c9609398580518dffaadaace17188c901a4a4522 (patch) | |
tree | 25ae1ad072e1679c985263d657393bd05a5c1003 /t/t4153-am-resume-override-opts.sh | |
parent | pickaxe tests: refactor to use test_commit --append --printf (diff) | |
download | tgif-c9609398580518dffaadaace17188c901a4a4522.tar.xz |
pickaxe tests: add test for diffgrep_consume() internals
In diffgrep_consume() we generate a diff, and then advance past the
"+" or "-" at the start of the line for matching. This has been done
ever since the code was added in f506b8e8b5f (git log/diff: add
-G<regexp> that greps in the patch text, 2010-08-23).
If we match "line" instead of "line + 1" no tests fail, i.e. we've got
zero coverage for whether any of our searches match the beginning of
the line or not. Let's add a test for this.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4153-am-resume-override-opts.sh')
0 files changed, 0 insertions, 0 deletions