mirror of
https://git.zx2c4.com/cgit
synced 2025-07-30 15:45:06 +02:00
Add prefix parameter to cgit_print_diff()
This allows a diff to be restricted to the path prefix specified in the url. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
f527a57c8a
commit
1a6025b7a5
3 changed files with 4 additions and 4 deletions
2
cgit.c
2
cgit.c
|
@ -107,7 +107,7 @@ static void cgit_print_repo_page(struct cacheitem *item)
|
|||
cgit_print_tag(cgit_query_sha1);
|
||||
break;
|
||||
case CMD_DIFF:
|
||||
cgit_print_diff(cgit_query_sha1, cgit_query_sha2);
|
||||
cgit_print_diff(cgit_query_sha1, cgit_query_sha2, cgit_query_path);
|
||||
break;
|
||||
default:
|
||||
cgit_print_error("Invalid request");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue