aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
authorGravatar Jason A. Donenfeld <Jason@zx2c4.com>2013-05-25 21:05:06 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2013-05-25 21:07:10 (JST)
commit5a4156ef951162d669e7170b440fad6e4c9e306f (patch)
tree6abeddaffea0f930336c74530c6230d36aeffff2 /cgit.c
parent0499e88ccec43dc69233841779ab4b71b5d94dac (diff)
downloadcgit-5a4156ef951162d669e7170b440fad6e4c9e306f.zip
cgit-5a4156ef951162d669e7170b440fad6e4c9e306f.tar.gz
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 <Jason@zx2c4.com>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c14
1 files changed, 14 insertions, 0 deletions
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)
678 if (repo->max_stats != ctx.cfg.max_stats) 678 if (repo->max_stats != ctx.cfg.max_stats)
679 fprintf(f, "repo.max-stats=%s\n", 679 fprintf(f, "repo.max-stats=%s\n",
680 cgit_find_stats_periodname(repo->max_stats)); 680 cgit_find_stats_periodname(repo->max_stats));
681 if (repo->logo)
682 fprintf(f, "repo.logo=%s\n", repo->logo);
683 if (repo->logo_link)
684 fprintf(f, "repo.logo-link=%s\n", repo->logo_link);
685 fprintf(f, "repo.enable-remote-branches=%d\n", repo->enable_remote_branches);
686 fprintf(f, "repo.enable-subject-links=%d\n", repo->enable_subject_links);
687 if (repo->branch_sort == 1)
688 fprintf(f, "repo.branch-sort=age\n");
689 if (repo->commit_sort) {
690 if (repo->commit_sort == 1)
691 fprintf(f, "repo.commit-sort=date\n");
692 else if (repo->commit_sort == 2)
693 fprintf(f, "repo.commit-sort=topo\n");
694 }
681 fprintf(f, "\n"); 695 fprintf(f, "\n");
682} 696}
683 697