]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Add URL parameter 'context' for changing the number of context lines in diffs
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 2c3ad73e064b556a23629194b9ca0a0a696186ee..e9bafb506ef38c24c4b4300de08d0b5965a738f6 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -250,6 +250,8 @@ 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);
+       } else if (!strcmp(name, "context")) {
+               ctx.qry.context = atoi(value);
        }
 }