summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2007-05-13 12:21:19 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-13 12:21:19 (UTC)
commitc4ef667961ef4668c9449124f97d55b9ac46c059 (patch) (unidiff)
tree3e1d3ed9dbf2bac55d0ffbcd2909c5d935fae48b /cgit.h
parent48dc00342effe3ba530ff6cbb79e5d0d5fc740fd (diff)
downloadcgit-c4ef667961ef4668c9449124f97d55b9ac46c059.zip
cgit-c4ef667961ef4668c9449124f97d55b9ac46c059.tar.gz
cgit-c4ef667961ef4668c9449124f97d55b9ac46c059.tar.bz2
Add standard interface for file diff functions
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h') (more/less context) (ignore 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
@@ -22,2 +22,3 @@ typedef 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
@@ -119,2 +120,7 @@ extern int hextoint(char c);
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,
@@ -122,2 +128,3 @@ extern void cgit_diff_tree(const unsigned char *old_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);