From 81d9b21a38f74b5cae1f2e74ccdf076e7f99d1b6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:19:49 -0700 Subject: Drop rev settings that change nothing repo_init_revisions already sets abbrev, commit_format and show_root_diff to these values, and verbose_header is only read by log_tree_commit, which the log and stats walks never call. --- source/ui-log.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/ui-log.c') diff --git a/source/ui-log.c b/source/ui-log.c index b7804c8..2af6967 100644 --- a/source/ui-log.c +++ b/source/ui-log.c @@ -521,10 +521,6 @@ void cgit_print_log(const char *tip, int ofs, int cnt, const char *grep, const c repo_init_revisions(the_repository, &rev, NULL); // The author and committer searches then match the mapped idents. rev.mailmap = cgit_mailmap(); - rev.abbrev = DEFAULT_ABBREV; - rev.commit_format = CMIT_FMT_DEFAULT; - rev.verbose_header = 1; - rev.show_root_diff = 0; rev.ignore_missing = 1; rev.simplify_history = 1; setup_revisions(rev_argv.nr, rev_argv.v, &rev, NULL); -- cgit