mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
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>
This commit is contained in:
parent
f1f509cc45
commit
967cf9867d
|
@ -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)
|
static void cmd_log_init_defaults(struct rev_info *rev)
|
||||||
{
|
{
|
||||||
rev->abbrev = DEFAULT_ABBREV;
|
|
||||||
rev->commit_format = CMIT_FMT_DEFAULT;
|
|
||||||
if (fmt_pretty)
|
if (fmt_pretty)
|
||||||
get_commit_format(fmt_pretty, rev);
|
get_commit_format(fmt_pretty, rev);
|
||||||
rev->verbose_header = 1;
|
rev->verbose_header = 1;
|
||||||
|
|
Loading…
Reference in a new issue