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:
Tim Chen
2012-01-03 16:02:14 +00:00
committed by Lars Hjemli
父節點 0b6a716d1b
當前提交 f2ced535e9
共有 3 個文件被更改,包括 3 次插入2 次删除

1
cgit.c
查看文件

@ -281,6 +281,7 @@ static void querystring_cb(const char *name, const char *value)
ctx.qry.period = xstrdup(value);
} else if (!strcmp(name, "ss")) {
ctx.qry.ssdiff = atoi(value);
ctx.qry.has_ssdiff = 1;
} else if (!strcmp(name, "all")) {
ctx.qry.show_all = atoi(value);
} else if (!strcmp(name, "context")) {