summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-07-30 16:10:59 +0200
committerJunio C Hamano <gitster@pobox.com>2024-07-30 13:32:44 -0700
commit2c4a6a8d9c550ca863511e9787982558d3698182 (patch)
treee97dfe24f10a76e4d041d0ceb1bf332cc03bfaea /builtin/commit-graph.c
parente51d7ef9405e45bbc744e688b232d311034ef01d (diff)
t-reftable-basics: use if_test
The macro TEST takes a single expression. If a test requires multiple statements then they need to be placed in a function that's called in the TEST expression. Remove the overhead of defining and calling single-use functions by using if_test instead. Run the tests in the order of definition. We can reorder them like that because they are independent. Technically this changes the output, but retains the meaning of a full run and allows for easier review e.g. with diff option --ignore-all-space. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions