mirror of
https://git.zx2c4.com/cgit
synced 2025-07-31 16:14:28 +02:00
Add log filtering by path and link to it from tree view
This enables path-filtering in log-view, and adds a link per entry in tree-view to show the log for each file/directory. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
4fdf571c88
commit
9fb53af215
6 changed files with 37 additions and 13 deletions
|
@ -186,7 +186,8 @@ void cgit_print_commit(const char *hex)
|
|||
cgit_print_date(info->committer_date);
|
||||
html("</td></tr>\n");
|
||||
html("<tr><th>tree</th><td colspan='2' class='sha1'><a href='");
|
||||
query = fmt("id=%s", sha1_to_hex(commit->tree->object.sha1));
|
||||
query = fmt("h=%s&id=%s", sha1_to_hex(commit->object.sha1),
|
||||
sha1_to_hex(commit->tree->object.sha1));
|
||||
html_attr(cgit_pageurl(cgit_query_repo, "tree", query));
|
||||
htmlf("'>%s</a></td></tr>\n", sha1_to_hex(commit->tree->object.sha1));
|
||||
for (p = commit->parents; p ; p = p->next) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue