all repos — cgit @ 65ced7c00907af7e8bd5d239a4fa854a84535520

a hyperfast web frontend for git written in c

Add all=1 query param for atom feeds

Displays all items from all branches in one feed

Signed-off-by: Aaron Griffin <agriffin@datalogics.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Aaron Griffin agriffin@datalogics.com
Wed, 03 Feb 2010 18:31:17 -0600
commit

65ced7c00907af7e8bd5d239a4fa854a84535520

parent

ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9

3 files changed, 6 insertions(+), 1 deletions(-)

jump to
M cgit.ccgit.c

@@ -250,6 +250,8 @@ } else if (!strcmp(name, "period")) {

ctx.qry.period = xstrdup(value); } else if (!strcmp(name, "ss")) { ctx.qry.ssdiff = atoi(value); + } else if (!strcmp(name, "all")) { + ctx.qry.show_all = atoi(value); } }
M cgit.hcgit.h

@@ -145,6 +145,7 @@ int nohead;

char *sort; int showmsg; int ssdiff; + int show_all; }; struct cgit_config {
M ui-atom.cui-atom.c

@@ -85,7 +85,9 @@ struct commit *commit;

struct rev_info rev; int argc = 2; - if (!tip) + if (ctx.qry.show_all) + argv[1] = "--all"; + else if (!tip) argv[1] = ctx.qry.head; if (path) {