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 <mschub@elegosoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Schubert committed
Dec 21, 2011 at 13:05 UTC
967cf9867de7c49393dfc666c941a1861d159639
1 file changed
-2
builtin/log.c
-2
@@ -72,8 +72,6 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse
72
73
static void cmd_log_init_defaults(struct rev_info *rev)
74
{
75
- rev->abbrev = DEFAULT_ABBREV;
76
- rev->commit_format = CMIT_FMT_DEFAULT;
75
if (fmt_pretty)
76
get_commit_format(fmt_pretty, rev);
77
rev->verbose_header = 1;