Code

builtin/log: remove redundant initialization
authorMichael Schubert <mschub@elegosoft.com>
Wed, 21 Dec 2011 12:05:27 +0000 (13:05 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Dec 2011 19:15:56 +0000 (11:15 -0800)
"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>
builtin/log.c

index f5d49305903911eb7aa0fb3f73e0fd950b896228..56bc555d11e25056eab45e92ac43ee885fb55bf7 100644 (file)
@@ -72,8 +72,6 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse
 
 static void cmd_log_init_defaults(struct rev_info *rev)
 {
-       rev->abbrev = DEFAULT_ABBREV;
-       rev->commit_format = CMIT_FMT_DEFAULT;
        if (fmt_pretty)
                get_commit_format(fmt_pretty, rev);
        rev->verbose_header = 1;