about summary refs log tree commit diff stats
path: root/cgit.c
diff options
context:
space:
mode:
authorBenjamin Close2008-11-25 06:25:35 -0800
committerLars Hjemli2008-11-29 13:25:54 +0100
commitd71c0c725d7b5ddfc5b788d328a5fc7a27739662 (patch)
treec7b0e71793470987c05a278dc5ed011a4903f524 /cgit.c
parentMerge branch 'stable' (diff)
downloadcgit-d71c0c725d7b5ddfc5b788d328a5fc7a27739662.tar.gz
cgit-d71c0c725d7b5ddfc5b788d328a5fc7a27739662.zip
Add support for sorting by Age in the repolist
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c index c82587b..e09c86e 100644 --- a/cgit.c +++ b/cgit.c
@@ -154,6 +154,8 @@ static void querystring_cb(const char *name, const char *value)
154 ctx.qry.name = xstrdup(value); 154 ctx.qry.name = xstrdup(value);
155 } else if (!strcmp(name, "mimetype")) { 155 } else if (!strcmp(name, "mimetype")) {
156 ctx.qry.mimetype = xstrdup(value); 156 ctx.qry.mimetype = xstrdup(value);
157 } else if (!strcmp(name, "s")){
158 ctx.qry.sort = xstrdup(value);
157 } 159 }
158} 160}
159 161