aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorTim Chen2012-01-03 16:02:14 +0000
committerLars Hjemli2012-01-03 16:02:14 +0000
commitf2ced535e9f2c2ada7f184735a07a1190a9d810f (patch)
tree0272646e2e0124737d637c0d5e7a858b4ba8f003 /cgit.h
parent0b6a716d1b9f18e8cc00940a7962e542b9358238 (diff)
downloadcgit-f2ced535e9f2c2ada7f184735a07a1190a9d810f.tar.gz
cgit-f2ced535e9f2c2ada7f184735a07a1190a9d810f.tar.bz2
cgit-f2ced535e9f2c2ada7f184735a07a1190a9d810f.zip
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.
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index b5f00fc..63847ff 100644
--- a/cgit.h
+++ b/cgit.h
@@ -133,6 +133,7 @@ struct reflist {
133struct cgit_query { 133struct cgit_query {
134 int has_symref; 134 int has_symref;
135 int has_sha1; 135 int has_sha1;
136 int has_ssdiff;
136 char *raw; 137 char *raw;
137 char *repo; 138 char *repo;
138 char *page; 139 char *page;