mirror of
https://git.zx2c4.com/cgit
synced 2025-07-02 22:34:32 +02:00
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:
parent
d20313e3da
commit
2cc8b99f08
6 changed files with 25 additions and 12 deletions
2
cgit.c
2
cgit.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue