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
@@ -44,32 +44,33 @@ extern int cgit_cache_repo_ttl; | |||
44 | extern int cgit_cache_dynamic_ttl; | 44 | extern int cgit_cache_dynamic_ttl; |
45 | extern int cgit_cache_static_ttl; | 45 | extern int cgit_cache_static_ttl; |
46 | extern int cgit_cache_max_create_time; | 46 | extern int cgit_cache_max_create_time; |
47 | 47 | ||
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 | ||
72 | extern void html(const char *txt); | 73 | extern void html(const char *txt); |
73 | extern void htmlf(const char *format,...); | 74 | extern void htmlf(const char *format,...); |
74 | extern void html_txt(char *txt); | 75 | extern void html_txt(char *txt); |
75 | extern void html_attr(char *txt); | 76 | extern void html_attr(char *txt); |
@@ -91,18 +92,19 @@ extern int cache_expired(struct cacheitem *item); | |||
91 | extern char *cgit_repourl(const char *reponame); | 92 | extern char *cgit_repourl(const char *reponame); |
92 | extern char *cgit_pageurl(const char *reponame, const char *pagename, | 93 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
93 | const char *query); | 94 | const char *query); |
94 | 95 | ||
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 */ |