Re: [PATCH v2 4/4] t0613: stop setting default initial branch
- From
- Phillip Wood <phillip.wood123@gmail.com>
- Date
- Sep 5, 2025, 10:09 UTC
- Message-ID
- <9f609d58-0abf-4bf3-8482-fc5487d72f31@gmail.com>
- In-Reply-To
- <xmqqa53a83rg.fsf@gitster.g>
On 04/09/2025 19:35, Junio C Hamano wrote:
Show 17 quoted lines
>
> Having to change this many "git init" invocations feels awkward,
> especially when we envision what needs to be done if somebody needs
> to update this file later. I wonder if a new helper function
> upfront
>
> +init_repo () {
> + git init --initial-branch master repo
> +}
> +
>
> with many changes like this to the rest of file
>
> - git init repo &&
> + init_repo &&
>
> may be easier to maintain over time? I dunno.Good idea, that would give us a convenient place to move the comment to as well
Thanks
Phillip