diff options
author | Ragnar Ouchterlony | 2009-09-14 20:19:02 +0200 |
---|---|---|
committer | Lars Hjemli | 2009-09-16 20:17:56 +0200 |
commit | c358aa3dfebf4fc1f3005dd960aa5c1c020eed76 (patch) | |
tree | 475fa421d673b270c7d1bde872b96425abfafce8 /ui-shared.h | |
parent | 40e174d5364910750413d94b5417e57d108190ef (diff) | |
download | cgit-c358aa3dfebf4fc1f3005dd960aa5c1c020eed76.tar.gz cgit-c358aa3dfebf4fc1f3005dd960aa5c1c020eed76.tar.bz2 cgit-c358aa3dfebf4fc1f3005dd960aa5c1c020eed76.zip |
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>
Diffstat (limited to 'ui-shared.h')
-rw-r--r-- | ui-shared.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui-shared.h b/ui-shared.h index bff4826..166246d 100644 --- a/ui-shared.h +++ b/ui-shared.h | |||
@@ -22,7 +22,7 @@ extern void cgit_log_link(char *name, char *title, char *class, char *head, | |||
22 | char *rev, char *path, int ofs, char *grep, | 22 | char *rev, char *path, int ofs, char *grep, |
23 | char *pattern, int showmsg); | 23 | char *pattern, int showmsg); |
24 | extern void cgit_commit_link(char *name, char *title, char *class, char *head, | 24 | extern void cgit_commit_link(char *name, char *title, char *class, char *head, |
25 | char *rev); | 25 | char *rev, int toggle_ssdiff); |
26 | extern void cgit_patch_link(char *name, char *title, char *class, char *head, | 26 | extern void cgit_patch_link(char *name, char *title, char *class, char *head, |
27 | char *rev); | 27 | char *rev); |
28 | extern void cgit_refs_link(char *name, char *title, char *class, char *head, | 28 | 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, | |||
30 | extern void cgit_snapshot_link(char *name, char *title, char *class, | 30 | extern void cgit_snapshot_link(char *name, char *title, char *class, |
31 | char *head, char *rev, char *archivename); | 31 | char *head, char *rev, char *archivename); |
32 | extern void cgit_diff_link(char *name, char *title, char *class, char *head, | 32 | extern void cgit_diff_link(char *name, char *title, char *class, char *head, |
33 | char *new_rev, char *old_rev, char *path); | 33 | char *new_rev, char *old_rev, char *path, |
34 | int toggle_ssdiff); | ||
34 | extern void cgit_stats_link(char *name, char *title, char *class, char *head, | 35 | extern void cgit_stats_link(char *name, char *title, char *class, char *head, |
35 | char *path); | 36 | char *path); |
36 | extern void cgit_object_link(struct object *obj); | 37 | extern void cgit_object_link(struct object *obj); |