From 5a4156ef951162d669e7170b440fad6e4c9e306f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 25 May 2013 14:05:06 +0200 Subject: cgit.c: sync repo config printing with struct cgit_repo We've now added quite a few config keys for repositories, but we've forgotten to update the printing of it for cache files. Synchronize the two. Signed-off-by: Jason A. Donenfeld --- cgit.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cgit.c b/cgit.c index 6f44ef2..e3ec533 100644 --- a/cgit.c +++ b/cgit.c @@ -678,6 +678,20 @@ static void print_repo(FILE *f, struct cgit_repo *repo) if (repo->max_stats != ctx.cfg.max_stats) fprintf(f, "repo.max-stats=%s\n", cgit_find_stats_periodname(repo->max_stats)); + if (repo->logo) + fprintf(f, "repo.logo=%s\n", repo->logo); + if (repo->logo_link) + fprintf(f, "repo.logo-link=%s\n", repo->logo_link); + fprintf(f, "repo.enable-remote-branches=%d\n", repo->enable_remote_branches); + fprintf(f, "repo.enable-subject-links=%d\n", repo->enable_subject_links); + if (repo->branch_sort == 1) + fprintf(f, "repo.branch-sort=age\n"); + if (repo->commit_sort) { + if (repo->commit_sort == 1) + fprintf(f, "repo.commit-sort=date\n"); + else if (repo->commit_sort == 2) + fprintf(f, "repo.commit-sort=topo\n"); + } fprintf(f, "\n"); } -- cgit 1.4.1 554b2b01c3210c2b075b85860ff2248139&follow=1'>diff
path: root/txt (unfollow)
Commit message (Collapse)Author
2018-09-04Add glitch -i to READMEJune McEnroe
2018-09-04Add -i invert option to glitchJune McEnroe
2018-09-02malloc IDAT chunks in pngo and glitchJune McEnroe
2018-09-02Use PascalCase for constants in gfxJune McEnroe
2018-09-02Use PascalCase for constantsJune McEnroe
Get outta here, underscores.
2018-09-02Remove colorcolumn at 100June McEnroe
2018-09-02Install bc(1) on ArchJune McEnroe
2018-09-02SendEnv LANGJune McEnroe
2018-08-27Add New Order — TemptationJune McEnroe
2018-08-26Add NetBSD to install.shJune McEnroe
2018-08-24Show hostname in title over SSHJune McEnroe
2018-08-23Alias bc='bc -l'June McEnroe
2018-08-20Update usage of scheme in READMEJune McEnroe
2018-08-20Use scheme.h in fbatt and fbclockJune McEnroe
2018-08-20Generate scheme.hJune McEnroe
2018-08-20Add dependencies on gfx.hJune McEnroe
2018-08-18Add Blondie — Heart of GlassJune McEnroe
Why didn't I know about this song? I love it.
2018-08-18Set FCEDIT=$EDITORJune McEnroe
2018-08-18Only post commits with bodies to MastodonJune McEnroe
2018-08-18Run tf/cfg link script with /bin/shJune McEnroe
2018-08-18Run {,s,t}up with /bin/shJune McEnroe
2018-08-18Use whence instead of typeJune McEnroe
type is an alias for whence -v and is more for human consumption.
2018-08-18Cut off path components until right prompt fitsJune McEnroe
Keeps paths valid (from somehwere) rather than abrupt truncation.
2018-08-17Add "private" alias to source encrypted fileJune McEnroe
Why is there no easy way to *edit* an encrypted file?
2018-08-17Add vim mapping to add a #includeJune McEnroe