Skip to content

Commit 967cf98

Browse files
Michael Schubertgitster
authored andcommitted
builtin/log: remove redundant initialization
"abbrev" and "commit_format" in struct rev_info get initialized in init_revisions - no need to reinit in cmd_log_init_defaults. Signed-off-by: Michael Schubert <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f1f509c commit 967cf98

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

builtin/log.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse
7272

7373
static void cmd_log_init_defaults(struct rev_info *rev)
7474
{
75-
rev->abbrev = DEFAULT_ABBREV;
76-
rev->commit_format = CMIT_FMT_DEFAULT;
7775
if (fmt_pretty)
7876
get_commit_format(fmt_pretty, rev);
7977
rev->verbose_header = 1;

0 commit comments

Comments
 (0)