From bc82123e839832d4a5bde4f66e141b7c2ce7c7ab Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:13:07 -0700 Subject: Label the age column of a followed log --- tests/t0103-log.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh index d7e745d..4306d8c 100755 --- a/tests/t0103-log.sh +++ b/tests/t0103-log.sh @@ -111,6 +111,18 @@ test_expect_success 'the log draws the commit graph when enabled' ' grep "" tmp ' +# A followed log is walked without the graph, so its first column holds the +# age whatever enable-commit-graph says. +test_expect_success 'a followed log heads its age column with the graph on' ' + { + echo "enable-commit-graph=1" && + cat folrc + } >folgraphrc && + CGIT_CONFIG="$PWD/folgraphrc" QUERY_STRING="url=fol/log/b.txt&follow=1" cgit >tmp && + grep "AgeCommit message" tmp && + ! grep "aria-label=.Graph." tmp +' + # The search is literal, so text that is no valid regular expression still # finds the commit holding it. test_expect_success 'a search for brackets matches them literally' ' -- cgit