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

Re: Merge commit subjects git.git

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jul 18, 2010, 17:22 UTC
Message-ID
<AANLkTim4FxPdHsDxkRmHzJT24LnZyiv9xLUqbTUndS9T@mail.gmail.com>
In-Reply-To
<AANLkTinTOMxWVM9kwhIfcG44SqOjpexY-Xy6kZYkemU9@mail.gmail.com>
On Sun, Jul 18, 2010 at 16:56, Sverre Rabbelier <srabbelier@gmail.com> wrote:
Show 8 quoted lines
> Heya,
>
> On Sun, Jul 18, 2010 at 10:33, Thomas Rast <trast@student.ethz.ch> wrote:
>>        if (!strcmp("master", current_branch))
>
> Wow, I thought the only place where we gave "master" any special
> meaning was in that we create it as the default branch. Can't we fix
> this to be less hard-coded?
In addition, Ilari on IRC pointed this out:
    < avar> What does git use to determine what branch gets checked out
            (not always master) on git clone URL?
    < Ilari> avar: HEAD
    < avar> Ah, just the HEAD of the remote, but that doesn't help after
            you've switched branches locally to find out what the main
            is..
    < Ilari> avar: Except that if you have another branch with same commit
             as the one you set to default, either of them may be selected
             (if one is 'master', then the tie is broken for it).

I.e. master is also treated more magically than others when cloning. But I couldn't find the code that does this, so perhaps it doesn't do that.

Previous: Sverre RabbelierNext: Ilari Liusvaara
Message 5 of 9 in “Merge commit subjects git.git”
  1. Jay SoffianJul 18, 2010
  2. Thomas RastJul 18, 2010
  3. Ævar Arnfjörð BjarmasonJul 18, 2010
  4. Sverre RabbelierJul 18, 2010
  5. Ævar Arnfjörð BjarmasonJul 18, 2010
  6. Ilari LiusvaaraJul 18, 2010
  7. Nicolas SebrechtJul 19, 2010
  8. Junio C HamanoJul 19, 2010
  9. Jay SoffianJul 19, 2010

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.