]> gitweb.ps.run Git - ps-cgit/commit
Add possibility to switch between unidiff and side-by-side-diff.
authorRagnar Ouchterlony <ragnar@lysator.liu.se>
Mon, 14 Sep 2009 18:19:02 +0000 (20:19 +0200)
committerLars Hjemli <hjemli@gmail.com>
Wed, 16 Sep 2009 18:17:56 +0000 (20:17 +0200)
commitc358aa3dfebf4fc1f3005dd960aa5c1c020eed76
tree475fa421d673b270c7d1bde872b96425abfafce8
parent40e174d5364910750413d94b5417e57d108190ef
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>
cgit.c
cgit.h
cgitrc.5.txt
ui-commit.c
ui-diff.c
ui-log.c
ui-refs.c
ui-shared.c
ui-shared.h