Add support for sorting by Age in the repolist

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Benjamin Close 2008-11-25 06:25:35 -08:00 committed by Lars Hjemli
parent 7b5cee65fd
commit d71c0c725d
3 changed files with 39 additions and 3 deletions

2
cgit.c
View file

@ -154,6 +154,8 @@ static void querystring_cb(const char *name, const char *value)
ctx.qry.name = xstrdup(value);
} else if (!strcmp(name, "mimetype")) {
ctx.qry.mimetype = xstrdup(value);
} else if (!strcmp(name, "s")){
ctx.qry.sort = xstrdup(value);
}
}