]> gitweb.ps.run Git - ps-cgit/commit
ui-diff: Add links to increase/decrease number of context lines in diffs
authorJohan Herland <johan@herland.net>
Thu, 10 Jun 2010 18:15:51 +0000 (20:15 +0200)
committerLars Hjemli <hjemli@gmail.com>
Sat, 19 Jun 2010 11:00:07 +0000 (13:00 +0200)
commitd20313e3daf855ee5d4808e050f54614c200d7b1
tree5c462f3ba6ec97c0b099a309dfd0fa87d03fbc72
parent6180e6169d6e87a3bea7e4da835dca17f93e5cfd
ui-diff: Add links to increase/decrease number of context lines in diffs

Add two links to the "Diffstat" line to show more/less context lines in the
generated diff.

To support this, cgit_commit_link() and cgit_diff_link() has learned to
preserve the ctx.qry.context variable.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
ui-diff.c
ui-shared.c