mirror of
https://git.zx2c4.com/cgit
synced 2025-08-29 06:08:24 +02:00
Add basic diff view
Finally, xdiff is used to show per-file diffs via commit view. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
a53042865a
commit
36aba00273
7 changed files with 270 additions and 1 deletions
2
cgit.h
2
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue