aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2007-10-01 18:42:19 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2007-10-01 18:42:19 (JST)
commitf527a57c8a55f5fd315e1bc1cb338f5f4a9b20ae (patch)
tree086e1afad5762c5b6bb09672b58f2c491ffbbc20 /cgit.h
parent98fcf7227c8dda520c864ea8a51012934115258f (diff)
downloadcgit-f527a57c8a55f5fd315e1bc1cb338f5f4a9b20ae.zip
cgit-f527a57c8a55f5fd315e1bc1cb338f5f4a9b20ae.tar.gz
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>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.h b/cgit.h
index e3d9cb8..5ef0bc5 100644
--- a/cgit.h
+++ b/cgit.h
@@ -170,7 +170,7 @@ extern int cgit_diff_files(const unsigned char *old_sha1,
170 170
171extern void cgit_diff_tree(const unsigned char *old_sha1, 171extern void cgit_diff_tree(const unsigned char *old_sha1,
172 const unsigned char *new_sha1, 172 const unsigned char *new_sha1,
173 filepair_fn fn); 173 filepair_fn fn, const char *prefix);
174 174
175extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); 175extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
176 176