Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
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.
Diffstat (limited to '')
-rw-r--r--source/ui-stats.c4
1 file changed, 0 insertions, 4 deletions
diff --git a/source/ui-stats.c b/source/ui-stats.c
index 555b795..4ed956c 100644
--- a/source/ui-stats.c
+++ b/source/ui-stats.c
@@ -233,11 +233,7 @@ static int collect_stats(const struct cgit_period *period, struct string_list *a
argc += 2;
}
repo_init_revisions(the_repository, &rev, NULL);
- rev.abbrev = DEFAULT_ABBREV;
- rev.commit_format = CMIT_FMT_DEFAULT;
rev.max_parents = 1;
- rev.verbose_header = 1;
- rev.show_root_diff = 0;
setup_revisions(argc, argv, &rev, NULL);
// Prune the walk to the displayed window instead of traversing the
// whole history and discarding older commits. The check below still