author | Lars Hjemli <hjemli@gmail.com> | 2006-12-20 21:48:27 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-20 21:48:27 (UTC) |
commit | 36aba00273e7af1b94bf8c5dd5068709d983d01e (patch) (unidiff) | |
tree | d9be4e6f27b115a799af40cad43445f63fbf2238 /cgit.h | |
parent | a53042865a4ac8b1fa1d6b37720787601e181495 (diff) | |
download | cgit-36aba00273e7af1b94bf8c5dd5068709d983d01e.zip cgit-36aba00273e7af1b94bf8c5dd5068709d983d01e.tar.gz cgit-36aba00273e7af1b94bf8c5dd5068709d983d01e.tar.bz2 |
Add basic diff view
Finally, xdiff is used to show per-file diffs via commit view.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -48,24 +48,25 @@ extern int cgit_cache_max_create_time; | |||
48 | extern char *cgit_repo_name; | 48 | extern char *cgit_repo_name; |
49 | extern char *cgit_repo_desc; | 49 | extern char *cgit_repo_desc; |
50 | extern char *cgit_repo_owner; | 50 | extern char *cgit_repo_owner; |
51 | 51 | ||
52 | extern int cgit_query_has_symref; | 52 | extern int cgit_query_has_symref; |
53 | extern int cgit_query_has_sha1; | 53 | extern int cgit_query_has_sha1; |
54 | 54 | ||
55 | extern char *cgit_querystring; | 55 | extern char *cgit_querystring; |
56 | extern char *cgit_query_repo; | 56 | extern char *cgit_query_repo; |
57 | extern char *cgit_query_page; | 57 | extern char *cgit_query_page; |
58 | extern char *cgit_query_head; | 58 | extern char *cgit_query_head; |
59 | extern char *cgit_query_sha1; | 59 | extern char *cgit_query_sha1; |
60 | extern char *cgit_query_sha2; | ||
60 | extern int cgit_query_ofs; | 61 | extern int cgit_query_ofs; |
61 | 62 | ||
62 | extern int htmlfd; | 63 | extern int htmlfd; |
63 | 64 | ||
64 | extern void cgit_global_config_cb(const char *name, const char *value); | 65 | extern void cgit_global_config_cb(const char *name, const char *value); |
65 | extern void cgit_repo_config_cb(const char *name, const char *value); | 66 | extern void cgit_repo_config_cb(const char *name, const char *value); |
66 | extern void cgit_querystring_cb(const char *name, const char *value); | 67 | extern void cgit_querystring_cb(const char *name, const char *value); |
67 | 68 | ||
68 | extern void *cgit_free_commitinfo(struct commitinfo *info); | 69 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
69 | 70 | ||
70 | extern char *fmt(const char *format,...); | 71 | extern char *fmt(const char *format,...); |
71 | 72 | ||
@@ -95,14 +96,15 @@ extern char *cgit_pageurl(const char *reponame, const char *pagename, | |||
95 | extern void cgit_print_error(char *msg); | 96 | extern void cgit_print_error(char *msg); |
96 | extern void cgit_print_date(unsigned long secs); | 97 | extern void cgit_print_date(unsigned long secs); |
97 | extern void cgit_print_docstart(char *title, struct cacheitem *item); | 98 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
98 | extern void cgit_print_docend(); | 99 | extern void cgit_print_docend(); |
99 | extern void cgit_print_pageheader(char *title); | 100 | extern void cgit_print_pageheader(char *title); |
100 | 101 | ||
101 | extern void cgit_print_repolist(struct cacheitem *item); | 102 | extern void cgit_print_repolist(struct cacheitem *item); |
102 | extern void cgit_print_summary(); | 103 | extern void cgit_print_summary(); |
103 | extern void cgit_print_log(const char *tip, int ofs, int cnt); | 104 | extern void cgit_print_log(const char *tip, int ofs, int cnt); |
104 | extern void cgit_print_view(const char *hex); | 105 | extern void cgit_print_view(const char *hex); |
105 | extern void cgit_print_tree(const char *hex); | 106 | extern void cgit_print_tree(const char *hex); |
106 | extern void cgit_print_commit(const char *hex); | 107 | extern void cgit_print_commit(const char *hex); |
108 | extern void cgit_print_diff(const char *old_hex, const char *new_hex); | ||
107 | 109 | ||
108 | #endif /* CGIT_H */ | 110 | #endif /* CGIT_H */ |