git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: "Wing Huang via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org,  Wing Huang <huangsen365@gmail.com>
Subject: Re: [PATCH] rename default branch from 'master' to 'main' in refs and test scripts
Date: Tue, 26 Aug 2025 11:14:18 +0200	[thread overview]
Message-ID: <875xeamolx.fsf@igel.home> (raw)
In-Reply-To: <pull.1961.git.1756183921623.gitgitgadget@gmail.com> (Wing Huang via GitGitGadget's message of "Tue, 26 Aug 2025 04:52:01 +0000")

On Aug 26 2025, Wing Huang via GitGitGadget wrote:

> diff --git a/remote.c b/remote.c
> index 81d8fc017e1..ffc4089a1c2 100644
> --- a/remote.c
> +++ b/remote.c
> @@ -2379,7 +2379,7 @@ struct ref *guess_remote_head(const struct ref *head,
>  			return copy_ref(r);
>  
>  		/* Fall back to the hard-coded historical default */
> -		r = find_ref_by_name(refs, "refs/heads/master");
> +		r = find_ref_by_name(refs, "refs/heads/main");

That comment is no longer accurate.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

  reply	other threads:[~2025-08-26  9:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-26  4:52 [PATCH] rename default branch from 'master' to 'main' in refs and test scripts Wing Huang via GitGitGadget
2025-08-26  9:14 ` Andreas Schwab [this message]
2025-08-26  9:58 ` Phillip Wood
2025-08-26 11:12   ` Jeff King
2025-08-27 13:26     ` Phillip Wood
2025-08-26 11:20   ` Phillip Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875xeamolx.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=huangsen365@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).