git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: [PATCH] SQUASH??? allow t0031 to run with any default branch name

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Dec 21, 2020, 20:19 UTC
Message-ID
<5fe1036d63729_f938208b3@natae.notmuch>
In-Reply-To
<xmqqsg7zkk75.fsf_-_@gitster.c.googlers.com>
Junio C Hamano wrote:
Show 7 quoted lines
> It seems that we should stop assuming what the name of the default
> branch is in a new repository.  One good way to do so would be to
> change "git init" to "git init -b primary" so that the tests won't
> get affected whether the default name is master or main or any other
> value, and then use 'primary' throughout the name, instead of
> assuming 'master' will stay to be the name used when unspecified
> forever.
A better name would be "initial".

Even in tests branch names should mean something, and in the context of git, the master branch means the original branch from which all the other branches were copied from (usually). In tests the primary branch is not necessarily the master branch, so "primary" doesn't cut it.

Another option is "original".
If the meaning of the word is not defined yet, a placeholder can be "nonce".

Or if we don't want to assign any meaning at all, just "blank", "nil", and of course "foobar".

Cheers.
-- 
Felipe Contreras
Previous: Junio C HamanoNext: Han-Wen Nienhuys
Message 13 of 14 in “What's cooking in git.git (Dec 2020, #03; Fri, 18)”
  1. Junio C HamanoDec 19, 2020
  2. Eric SunshineDec 19, 2020
  3. Junio C HamanoDec 19, 2020
  4. Felipe ContrerasDec 19, 2020
  5. Junio C HamanoDec 19, 2020
  6. Elijah NewrenDec 20, 2020
  7. Junio C HamanoDec 20, 2020
  8. Elijah NewrenDec 21, 2020
  9. Junio C HamanoDec 21, 2020
  10. Han-Wen NienhuysDec 21, 2020
  11. Junio C HamanoDec 21, 2020
  12. SQUASH??? allow t0031 to run with any default branch nameJunio C Hamano, Dec 21, 2020
  13. Felipe ContrerasDec 21, 2020
  14. Han-Wen NienhuysDec 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.