]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Merge branch 'jh/context-lines'
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index d4fcfa70b18952e72bf4bde7b1050cc148db5188..ab25b6a00efe4889863b7625c22e9ea180d0fe61 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -258,6 +258,8 @@ static void querystring_cb(const char *name, const char *value)
                ctx.qry.ssdiff = atoi(value);
        } else if (!strcmp(name, "all")) {
                ctx.qry.show_all = atoi(value);
+       } else if (!strcmp(name, "context")) {
+               ctx.qry.context = atoi(value);
        }
 }