Re: [PATCH 1/9] init: allow overriding the default branch name for new repositories
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 11, 2020, 15:28 UTC
- Message-ID
- <xmqqd065bp0x.fsf@gitster.c.googlers.com>
- In-Reply-To
- <nycvar.QRO.7.76.6.2006111607450.56@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 9 quoted lines
>> Overall, the internal logic regarding duplicating/freeing strings >> would probably be easier to grok if there were two separate functions: >> >> char *git_default_branch_name(void); >> char *git_default_ref_name(void); >> >> but that's subjective. > > For such a tiny nuance, I'd rather keep it as one function...
And you'd need two functions, default and primary, possibly full and short. Splitting these into two here would mean you'd need four.