Thread (1 message) 1 message, 1 author, 2020-06-11

Re: [PATCH 1/9] init: allow overriding the default branch name for new repositories

From: Junio C Hamano <hidden>
Date: 2020-06-11 15:28:20

Johannes Schindelin [off-list ref] writes:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help