mirror of
https://git.zx2c4.com/cgit
synced 2025-07-28 14:44:57 +02:00
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>
This commit is contained in:
parent
7a4e7c8ffb
commit
792f813d34
8 changed files with 40 additions and 6 deletions
3
cmd.c
3
cmd.c
|
@ -68,7 +68,8 @@ static void log_fn(struct cgit_context *ctx)
|
|||
{
|
||||
cgit_print_log(ctx->qry.sha1, ctx->qry.ofs, ctx->cfg.max_commit_count,
|
||||
ctx->qry.grep, ctx->qry.search, ctx->qry.path, 1,
|
||||
ctx->repo->enable_commit_graph);
|
||||
ctx->repo->enable_commit_graph,
|
||||
ctx->repo->commit_sort);
|
||||
}
|
||||
|
||||
static void ls_cache_fn(struct cgit_context *ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue