mirror of
https://git.zx2c4.com/cgit
synced 2025-07-31 08:04:28 +02:00
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.
This commit is contained in:
parent
0b6a716d1b
commit
f2ced535e9
3 changed files with 3 additions and 2 deletions
1
cgit.h
1
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue