mirror of
https://git.zx2c4.com/cgit
synced 2025-09-01 15:25:33 +02:00
Add possibility to switch between unidiff and side-by-side-diff.
A new config option side-by-side-diffs added, defaulting to 0, meaning unidiff. Also a query option (ss) is used toggle this. In the commit page you can switch between the two diff formats by clicking on the link on the "commit"-row, to the right of (patch). In the diff page you can switch by using the link at the start of the page. All commit-links and diff-links will remember the choice. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
40e174d536
commit
c358aa3dfe
9 changed files with 73 additions and 16 deletions
|
@ -22,7 +22,7 @@ extern void cgit_log_link(char *name, char *title, char *class, char *head,
|
|||
char *rev, char *path, int ofs, char *grep,
|
||||
char *pattern, int showmsg);
|
||||
extern void cgit_commit_link(char *name, char *title, char *class, char *head,
|
||||
char *rev);
|
||||
char *rev, int toggle_ssdiff);
|
||||
extern void cgit_patch_link(char *name, char *title, char *class, char *head,
|
||||
char *rev);
|
||||
extern void cgit_refs_link(char *name, char *title, char *class, char *head,
|
||||
|
@ -30,7 +30,8 @@ extern void cgit_refs_link(char *name, char *title, char *class, char *head,
|
|||
extern void cgit_snapshot_link(char *name, char *title, char *class,
|
||||
char *head, char *rev, char *archivename);
|
||||
extern void cgit_diff_link(char *name, char *title, char *class, char *head,
|
||||
char *new_rev, char *old_rev, char *path);
|
||||
char *new_rev, char *old_rev, char *path,
|
||||
int toggle_ssdiff);
|
||||
extern void cgit_stats_link(char *name, char *title, char *class, char *head,
|
||||
char *path);
|
||||
extern void cgit_object_link(struct object *obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue