From 10e5cfbe13138edcb1f2b6fc08c0f744d3decbcf Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:17:38 -0700 Subject: Mark the static pages in the command table The table already records what each page needs, and a second list of page names in cgit.c had to be kept in step with it by hand. --- source/cmd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/cmd.h') diff --git a/source/cmd.h b/source/cmd.h index f47878b..a855574 100644 --- a/source/cmd.h +++ b/source/cmd.h @@ -14,6 +14,10 @@ struct cgit_cmd { const char *name; cgit_cmd_fn fn; unsigned int want_repo:1, want_vpath:1, is_clone:1; + // Set on the pages that render the same bytes for the same id for + // ever. A log or refs page named with an id still lists branches and + // tags, which move. + unsigned int is_static:1; }; /* -- cgit