about summary refs log tree commit diff stats
path: root/cmd.c
diff options
context:
space:
mode:
authorTobias Bieniek2012-10-13 16:10:30 +0200
committerJason A. Donenfeld2012-10-17 16:30:29 +0200
commit792f813d342013124ce40142fef4afee3ff00df3 (patch)
tree9d42fff81b16cba44c8c765f2866cc79ddb507cd /cmd.c
parentui-repolist: Add "section-sort" flag to control section sorting. (diff)
downloadcgit-792f813d342013124ce40142fef4afee3ff00df3.tar.gz
cgit-792f813d342013124ce40142fef4afee3ff00df3.zip
ui-log: Add "commit-sort" option for controlling commit ordering
This makes it possible to use strict commit date ordering or strict
topological ordering by passing the corresponding flags to "git log".

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c index 5a3d157..899e913 100644 --- a/cmd.c +++ b/cmd.c
@@ -68,7 +68,8 @@ static void log_fn(struct cgit_context *ctx)
68{ 68{
69 cgit_print_log(ctx->qry.sha1, ctx->qry.ofs, ctx->cfg.max_commit_count, 69 cgit_print_log(ctx->qry.sha1, ctx->qry.ofs, ctx->cfg.max_commit_count,
70 ctx->qry.grep, ctx->qry.search, ctx->qry.path, 1, 70 ctx->qry.grep, ctx->qry.search, ctx->qry.path, 1,
71 ctx->repo->enable_commit_graph); 71 ctx->repo->enable_commit_graph,
72 ctx->repo->commit_sort);
72} 73}
73 74
74static void ls_cache_fn(struct cgit_context *ctx) 75static void ls_cache_fn(struct cgit_context *ctx)