aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorMichael Schubert <mschub@elegosoft.com>2011-12-21 13:05:27 +0100
committerJunio C Hamano <gitster@pobox.com>2011-12-21 11:15:56 -0800
commit967cf9867de7c49393dfc666c941a1861d159639 (patch)
treeed6a2f63e67d85ce247092fa7e6ee487e0cd01b9 /builtin
parentf1f509cc4504ebe9e2922c7bc61794183e3d441a (diff)
downloadgit-967cf9867de7c49393dfc666c941a1861d159639.tar.gz
git-967cf9867de7c49393dfc666c941a1861d159639.tar.xz
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/log.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/log.c b/builtin/log.c
index f5d493059..56bc555d1 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -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;