summaryrefslogtreecommitdiffabout
path: root/shared.c
authorOndrej Jirman <ondrej.jirman@zonio.net>2007-05-26 01:33:41 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-31 08:25:48 (UTC)
commit51a960a3ca6b0cade97db287a342996c3e1de48d (patch) (side-by-side diff)
treed3360cd301c9e13d7aa9492e6628bf8d71736608 /shared.c
parent6130231ed5e7475836a44d79d5f09e300e71a407 (diff)
downloadcgit-51a960a3ca6b0cade97db287a342996c3e1de48d.zip
cgit-51a960a3ca6b0cade97db287a342996c3e1de48d.tar.gz
cgit-51a960a3ca6b0cade97db287a342996c3e1de48d.tar.bz2
Implemented configurable HEAD shortlog on summary page.
This mirrors similiar functionality in gitweb. After clicking on project on projectlist you will immediatelly see quick summary of last N commits on HEAD. [lh: changed from HEAD to cgit_query_head] Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index e3123a8..b6d2fa1 100644
--- a/shared.c
+++ b/shared.c
@@ -36,2 +36,3 @@ int cgit_cache_static_ttl = -1;
int cgit_cache_max_create_time = 5;
+int cgit_summary_log = 0;
@@ -166,2 +167,4 @@ void cgit_global_config_cb(const char *name, const char *value)
cgit_max_commit_count = atoi(value);
+ else if (!strcmp(name, "summary-log"))
+ cgit_summary_log = atoi(value);
else if (!strcmp(name, "agefile"))