X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/aa25ff3c8b548077f2793c1162f3610af03e63df..4b4a62d507adc61e20e75e2748301ef307a6c95f:/cmd.c diff --git a/cmd.c b/cmd.c index 5a3d157..198bf2f 100644 --- a/cmd.c +++ b/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) @@ -165,7 +166,7 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) ctx->qry.page = "repolist"; } - for(i = 0; i < sizeof(cmds)/sizeof(*cmds); i++) + for (i = 0; i < sizeof(cmds)/sizeof(*cmds); i++) if (!strcmp(ctx->qry.page, cmds[i].name)) return &cmds[i]; return NULL;