about summary refs log tree commit diff
path: root/cmd.c
diff options
context:
space:
mode:
authorAaron Griffin <agriffin@datalogics.com>2010-02-04 18:08:16 -0600
committerLars Hjemli <hjemli@gmail.com>2010-03-22 23:46:00 +0100
commit80476b0d2873eb212fad38487fd6189bd6629cbe (patch)
treebdacb5527659ebb8296e95dfbe3ea5f74fe3a9ac /cmd.c
parentAdd all=1 query param for atom feeds (diff)
downloadcgit-pink-80476b0d2873eb212fad38487fd6189bd6629cbe.tar.gz
cgit-pink-80476b0d2873eb212fad38487fd6189bd6629cbe.zip
Add 'max-atom-items' config variable
This allows one to specify the items in the RSS feeds

Signed-off-by: Aaron Griffin <agriffin@datalogics.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 766f903..ad784fc 100644
--- a/cmd.c
+++ b/cmd.c
@@ -33,7 +33,7 @@ static void HEAD_fn(struct cgit_context *ctx)
 
 static void atom_fn(struct cgit_context *ctx)
 {
-	cgit_print_atom(ctx->qry.head, ctx->qry.path, 10);
+	cgit_print_atom(ctx->qry.head, ctx->qry.path, ctx->cfg.max_atom_items);
 }
 
 static void about_fn(struct cgit_context *ctx)