diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-10-01 11:46:38 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-10-01 11:46:38 +0200 |
commit | 1a6025b7a515a23ab4c83f4a5da468e00e4f0a38 (patch) | |
tree | 897fb29bf0d48a6c472221d6a2a32188dfcf8df9 /cgit.h | |
parent | Add prefix parameter to cgit_diff_tree() (diff) | |
download | cgit-pink-1a6025b7a515a23ab4c83f4a5da468e00e4f0a38.tar.gz cgit-pink-1a6025b7a515a23ab4c83f4a5da468e00e4f0a38.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | cgit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.h b/cgit.h index 5ef0bc5..e96311f 100644 --- a/cgit.h +++ b/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); |