summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-11-29 08:25:05 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-03 11:50:24 +0900
commit46262691686d302e77bfaf8e27b7fd3792705aeb (patch)
treeb5f8733adadc69c26953c03abaac25ffd68276d2 /builtin/commit-graph.c
parent110feb893a16c009ffc8771b4204b2dc5c54c8c6 (diff)
t4013: simplify magic parsing and drop "failure"
In t14013, we have various different tests that verify whether certain diffs are generated as expected. As much of the logic is the same across many of the tests we some common code in there that generates the actual test cases for us. As some diffs are more special than others depending on the command line parameters passed to git-diff(1), these tests need to adapt behaviour to the specific test case sometimes. This is done via colon-prefixed magic commands, of which we currently know "failure" and "noellipses". The logic to parse this magic is a bit convoluted though and hard to grasp, also due to the rather unnecessary nesting. Un-nest the cases so that it becomes a bit more straightfoward. The logic is further simplified by removing support for the "failure" magic, which is not actually used anymore. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions