summaryrefslogtreecommitdiff
path: root/t/t4034/bibtex
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-04-12 19:15:26 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-05-11 12:47:31 +0900
commitfa59e7beb2a61d9cd1312b212075edf12935fdc6 (patch)
treeb2c976fdc144757d9681c993a88d83423aa7df78 /t/t4034/bibtex
parentxdiff-interface: allow early return from xdiff_emit_line_fn (diff)
downloadtgif-fa59e7beb2a61d9cd1312b212075edf12935fdc6.tar.xz
pickaxe -G: terminate early on matching lines
Solve a long-standing item for "git log -Grx" of us e.g. finding "+ str" in the diff context and noting that we had a "hit", but xdiff diligently continuing to generate and spew the rest of the diff at us. This makes use of a new "early return" xdiff interface added by preceding commits. The TODO item (or, the NEEDSWORK comment) has been there since "git log -G" was implemented. See f506b8e8b5f (git log/diff: add -G<regexp> that greps in the patch text, 2010-08-23). But now with the support added in the preceding changes to the xdiff-interface we can return early. Let's assert the behavior of that new early-return xdiff-interface by having a BUG() call here to die if it ever starts handing us needless work again. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4034/bibtex')
0 files changed, 0 insertions, 0 deletions