]> gitweb.ps.run Git - ps-cgit/commit
Fix diff mode switching when side-by-side-diffs=1
authorTim Chen <timchen1@gmail.com>
Tue, 3 Jan 2012 16:02:14 +0000 (16:02 +0000)
committerLars Hjemli <hjemli@gmail.com>
Tue, 3 Jan 2012 16:02:14 +0000 (16:02 +0000)
commitf2ced535e9f2c2ada7f184735a07a1190a9d810f
tree0272646e2e0124737d637c0d5e7a858b4ba8f003
parent0b6a716d1b9f18e8cc00940a7962e542b9358238
Fix diff mode switching when side-by-side-diffs=1

When side-by-side-diffs=1 was set in cgitrc, specyfing 'ss=0' in the query-
string would not switch to unified diffs. This patch fixes the issue by
introducing a separate variable to track the occurrence of "ss" in the
querystring.
cgit.c
cgit.h
ui-diff.c