author | Ondrej 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) |
commit | 51a960a3ca6b0cade97db287a342996c3e1de48d (patch) (unidiff) | |
tree | d3360cd301c9e13d7aa9492e6628bf8d71736608 /ui-summary.c | |
parent | 6130231ed5e7475836a44d79d5f09e300e71a407 (diff) | |
download | cgit-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>
-rw-r--r-- | ui-summary.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui-summary.c b/ui-summary.c index 15e8aec..4bda4c2 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
@@ -21,2 +21,5 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, | |||
21 | commit = lookup_commit(sha1); | 21 | commit = lookup_commit(sha1); |
22 | // object is not really parsed at this point, because of some fallout | ||
23 | // from previous calls to git functions in cgit_print_log() | ||
24 | commit->object.parsed = 0; | ||
22 | if (commit && !parse_commit(commit)){ | 25 | if (commit && !parse_commit(commit)){ |
@@ -205,4 +208,7 @@ void cgit_print_summary() | |||
205 | html("</div>"); | 208 | html("</div>"); |
206 | 209 | if (cgit_summary_log > 0) | |
210 | cgit_print_log(cgit_query_head, 0, cgit_summary_log, NULL, NULL, 0); | ||
207 | html("<table class='list nowrap'>"); | 211 | html("<table class='list nowrap'>"); |
212 | if (cgit_summary_log > 0) | ||
213 | html("<tr class='nohover'><td colspan='4'> </td></tr>"); | ||
208 | cgit_print_branches(); | 214 | cgit_print_branches(); |