mirror of
https://git.zx2c4.com/cgit
synced 2025-08-30 22:49:41 +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.h
2
cgit.h
|
@ -238,7 +238,7 @@ extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path)
|
|||
extern void cgit_print_tree(const char *rev, char *path);
|
||||
extern void cgit_print_commit(char *hex);
|
||||
extern void cgit_print_tag(char *revname);
|
||||
extern void cgit_print_diff(const char *new_hex, const char *old_hex);
|
||||
extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix);
|
||||
extern void cgit_print_snapshot(struct cacheitem *item, const char *head,
|
||||
const char *hex, const char *prefix,
|
||||
const char *filename, int snapshot);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue