diff options
author | Lars Hjemli <hjemli@gmail.com> | 2006-12-20 22:48:27 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-20 22:48:27 +0100 |
commit | 36aba00273e7af1b94bf8c5dd5068709d983d01e (patch) | |
tree | d9be4e6f27b115a799af40cad43445f63fbf2238 /cgit.h | |
parent | Use html_filemode in ui-tree.c (diff) | |
download | cgit-pink-36aba00273e7af1b94bf8c5dd5068709d983d01e.tar.gz cgit-pink-36aba00273e7af1b94bf8c5dd5068709d983d01e.zip |
Add basic diff view
Finally, xdiff is used to show per-file diffs via commit view. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h index 37584d6..bba2d6c 100644 --- a/cgit.h +++ b/cgit.h @@ -57,6 +57,7 @@ extern char *cgit_query_repo; extern char *cgit_query_page; extern char *cgit_query_head; extern char *cgit_query_sha1; +extern char *cgit_query_sha2; extern int cgit_query_ofs; extern int htmlfd; @@ -104,5 +105,6 @@ extern void cgit_print_log(const char *tip, int ofs, int cnt); extern void cgit_print_view(const char *hex); extern void cgit_print_tree(const char *hex); extern void cgit_print_commit(const char *hex); +extern void cgit_print_diff(const char *old_hex, const char *new_hex); #endif /* CGIT_H */ |