Re: [PATCH v3 0/4] breaking changes: switch default initial branch name to "main"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 17, 2025, 15:02 UTC
- Message-ID
- <xmqqcy7pf7gt.fsf@gitster.g>
- In-Reply-To
- <145305ac-dbfb-4162-a603-b6b60df2bc5e@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 10 quoted lines
> Which I only mention because >> +static const char default_branch_name_advice[] = N_( >> +"Using '%s' as the name for the initial branch since Git 3.0.\n" >> +"If you expected Git to create 'master', you can rename the just-created\n" >> +"branch can be renamed via this command:\n" >> +"\n" >> +"\tgit branch -m master\n" >> +); > > Repetition: “can rename ... can be renamed”
Yuck. I started writing my own message and the in the middle of the sentence changed my mind and decided to borrow from the existing message we are giving before 3.0, and made the result incoherent.
I've squashed in the following.
Thanks for carefully reading.
diff --git c/refs.c w/refs.c index dc569d0358..f15366bfce 100644 --- c/refs.c +++ w/refs.c @@ -644,7 +644,7 @@ static const char default_branch_name_advice[] = N_( #else static const char default_branch_name_advice[] = N_( "Using '%s' as the name for the initial branch since Git 3.0.\n" -"If you expected Git to create 'master', you can rename the just-created\n" +"If you expected Git to create 'master', the just-created\n" "branch can be renamed via this command:\n" "\n" "\tgit branch -m master\n"