From bcf5448319ff769f13a862ebc1ab09826238fbcb Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 5 Nov 2026 19:29:04 -1000 Subject: Say which index column is sorted --- source/ui-repolist.c | 7 ++++++- tests/t0101-index.sh | 13 +++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/source/ui-repolist.c b/source/ui-repolist.c index 3eb9375..4f79f70 100644 --- a/source/ui-repolist.c +++ b/source/ui-repolist.c @@ -192,7 +192,12 @@ static int any_repos_under_url(void) */ static void print_column_header(const char *title, const char *column, const char *currenturl) { - htmlf("tmp && + grep "" tmp && + test $(grep -o "aria-sort" tmp | wc -l) = 1 || return 1 + done && + cgit_url "" >tmp && + ! grep "aria-sort" tmp +' + # A scan has no cgitrc order for the index to keep, so it lists what it finds # by path whatever order the directory hands back, comparing names the way # case-sensitive-sort tells the index to. -- cgit 2.12.1