From f2ced535e9f2c2ada7f184735a07a1190a9d810f Mon Sep 17 00:00:00 2001 From: Tim Chen Date: Tue, 3 Jan 2012 16:02:14 +0000 Subject: 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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index b5f00fc..63847ff 100644 --- a/cgit.h +++ b/cgit.h @@ -133,6 +133,7 @@ struct reflist { struct cgit_query { int has_symref; int has_sha1; + int has_ssdiff; char *raw; char *repo; char *page; -- cgit v1.2.1