Add URL parameter 'ignorews' for optionally ignoring whitespace in diffs

The new ctx.qry.ignorews variable is passed via cgit_diff_files() and
cgit_diff_tree() to Git's diff machinery. This is equivalent to passing
--ignore-all-space to 'git diff'.

Signed-off-by: Johan Herland <johan@herland.net>
This commit is contained in:
Johan Herland
2010-06-24 17:52:57 +02:00
committed by Lars Hjemli
parent d20313e3da
commit 2cc8b99f08
6 changed files with 25 additions and 12 deletions

2
cgit.c
View File

@ -252,6 +252,8 @@ static void querystring_cb(const char *name, const char *value)
ctx.qry.ssdiff = atoi(value);
} else if (!strcmp(name, "context")) {
ctx.qry.context = atoi(value);
} else if (!strcmp(name, "ignorews")) {
ctx.qry.ignorews = atoi(value);
}
}