Re: [PATCH v2 4/4] t0613: stop setting default initial branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/09/2025 19:35, Junio C Hamano wrote:

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





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux