From 2cc8b99f083014c58d8937bfa4dcd2bc47cd7e58 Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Thu, 24 Jun 2010 17:52:57 +0200 Subject: 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 --- cgit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index e9bafb5..9452884 100644 --- a/cgit.c +++ b/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); } } -- cgit v1.2.3-59-g8ed1b