From 8a7aa400143f3e95b3ecd18f19e21b526d6a419d Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 19:47:34 -1000 Subject: Read the description file without repo.desc Only a scanned repository fell back to its description file, so one listed in cgitrc without repo.desc showed "[no description]" however its file read. repo.desc may follow repo.path, so the file is read where a page shows the description, which also spares every other request the reads. --- source/cgit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/cgit.h') diff --git a/source/cgit.h b/source/cgit.h index da202b7..c56578c 100644 --- a/source/cgit.h +++ b/source/cgit.h @@ -113,6 +113,9 @@ struct cgit_repo { struct string_list submodules; int hide; int ignore; + // Set once the description file has been looked at, so a scanned + // repository whose file held nothing usable is not read again. + int desc_read; }; struct cgit_repolist { -- cgit 2.12.1