Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
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.
Diffstat (limited to 'source/cgit.h')
| -rw-r--r-- | source/cgit.h | 3 |
1 file changed, 3 insertions, 0 deletions
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 { |
