aboutsummaryrefslogtreecommitdiff
path: root/cgit.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index bb32dc7..ff4b8d9 100644
--- a/cgit.c
+++ b/cgit.c
@@ -393,6 +393,14 @@ static void querystring_cb(const char *name, const char *value)
ctx.qry.ignorews = atoi(value);
} else if (!strcmp(name, "follow")) {
ctx.qry.follow = atoi(value);
+ } else if (!strcmp(name, "idoff")) {
+ ctx.qry.idoff = atoi(value);
+ if (ctx.qry.idoff < 0)
+ ctx.qry.idoff = 0;
+ } else if (!strcmp(name, "id2off")) {
+ ctx.qry.id2off = atoi(value);
+ if (ctx.qry.id2off < 0)
+ ctx.qry.id2off = 0;
}
}