summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (show whitespace changes)
-rw-r--r--cgit.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 24b02d7..43de375 100644
--- a/cgit.h
+++ b/cgit.h
@@ -20,6 +20,7 @@
20 20
21typedef void (*configfn)(const char *name, const char *value); 21typedef void (*configfn)(const char *name, const char *value);
22typedef void (*filepair_fn)(struct diff_filepair *pair); 22typedef void (*filepair_fn)(struct diff_filepair *pair);
23typedef void (*linediff_fn)(char *line, int len);
23 24
24struct cacheitem { 25struct cacheitem {
25 char *name; 26 char *name;
@@ -117,9 +118,15 @@ extern int chk_positive(int result, char *msg);
117extern int hextoint(char c); 118extern int hextoint(char c);
118 119
119extern void *cgit_free_commitinfo(struct commitinfo *info); 120extern void *cgit_free_commitinfo(struct commitinfo *info);
121
122extern int cgit_diff_files(const unsigned char *old_sha1,
123 const unsigned char *new_sha1,
124 linediff_fn fn);
125
120extern void cgit_diff_tree(const unsigned char *old_sha1, 126extern void cgit_diff_tree(const unsigned char *old_sha1,
121 const unsigned char *new_sha1, 127 const unsigned char *new_sha1,
122 filepair_fn fn); 128 filepair_fn fn);
129
123extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); 130extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
124 131
125extern char *fmt(const char *format,...); 132extern char *fmt(const char *format,...);