Re: [PATCH 4/4] core.abbrev: raise the default abbreviation to 12 hexdigits
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 29, 2016, 19:45 UTC
- Message-ID
- <xmqqwphuebhd.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CA+55aFxNVbvyERNc_xEhrtfTVMGz3hkeAx1nv9vW+dhJwCpp6g@mail.gmail.com>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 7 quoted lines
> But you could easily also just instead have it do something like > > if (default_abbrev < 0) > default_abbrev = initialize_abbrev(); > > at startup time if "abbrev_commit" is set, and just do it once and for > all rather rthan the odd loping behavior.
I think that is a reasonable way to go.
#define DEFAULT_ABBREV get_default_abbrev()
would help.