mirror of
https://git.zx2c4.com/cgit
synced 2025-07-19 18:34:46 +02:00
Add prefix parameter to cgit_diff_tree()
This paramter can be used to restrict a diff to the specified path prefix. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
98fcf7227c
commit
f527a57c8a
3 changed files with 11 additions and 5 deletions
|
@ -131,10 +131,9 @@ void cgit_print_diff(const char *new_rev, const char *old_rev)
|
|||
if (!commit2 || parse_commit(commit2))
|
||||
cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(sha2)));
|
||||
}
|
||||
|
||||
html("<table class='diff'>");
|
||||
html("<tr><td>");
|
||||
cgit_diff_tree(sha2, sha1, filepair_cb);
|
||||
cgit_diff_tree(sha2, sha1, filepair_cb, NULL);
|
||||
html("</td></tr>");
|
||||
html("</table>");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue