mirror of
https://git.zx2c4.com/cgit
synced 2025-09-01 15:25:33 +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
2
cgit.h
2
cgit.h
|
@ -170,7 +170,7 @@ extern int cgit_diff_files(const unsigned char *old_sha1,
|
|||
|
||||
extern void cgit_diff_tree(const unsigned char *old_sha1,
|
||||
const unsigned char *new_sha1,
|
||||
filepair_fn fn);
|
||||
filepair_fn fn, const char *prefix);
|
||||
|
||||
extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue