diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-04-08 17:04:24 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-08 12:19:10 -0700 |
commit | f08b4013c3faf5535ca8d5271ffb1840ce6ddaab (patch) | |
tree | 8c87ed2cd958f600f2ad84280b2b99e7502e0970 /LGPL-2.1 | |
parent | blame tests: don't rely on t/t4018/ directory (diff) | |
download | tgif-f08b4013c3faf5535ca8d5271ffb1840ce6ddaab.tar.xz |
blame tests: simplify userdiff driver test
Simplify the test added in 9466e3809d (blame: enable funcname blaming
with userdiff driver, 2020-11-01) to use the --author support recently
added in 999cfc4f45 (test-lib functions: add --author support to
test_commit, 2021-01-12).
We also did not need the full fortran-external-function content. Let's
cut it down to just the important parts.
I'm modifying it to demonstrate that the fortran-specific userdiff
function is in effect by adding "DO NOT MATCH ..." and "AS THE ..."
lines surrounding the "RIGHT" one.
This is to check that we're using the userdiff "fortran" driver, as
opposed to the default driver which would match on those lines as part
of the general heuristic of matching a line that doesn't begin with
whitespace.
The test had also been leaving behind a .gitattributes file for later
tests to possibly trip over, let's clean it up with
"test_when_finished".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'LGPL-2.1')
0 files changed, 0 insertions, 0 deletions