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

Re: Make 'git fsck' complain about non-commit branches

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 16, 2008, 19:59 UTC
Message-ID
<7vk5m9pmmq.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LFD.1.00.0801151654050.2806@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 9 quoted lines
> On Tue, 15 Jan 2008, Junio C Hamano wrote:
>> 
>> So far, the plumbing level did not care much about the Porcelain
>> convention, such as refs/heads and refs/remotes (you seem to
>> have forgot) are about "branches" and must point at commit
>> objects.
>
> Yeah. I'm not sure this is all a great idea, but I think they are correct 
> (and no, "refs/remotes/" would *not* have been correct). 

If we take that "plumbing knows much more about Porcelain convention" shift-of-paradigm all the way, refs/remotes/ would contain what are copied from refs/heads/ elsewhere, so checking would have been correct. If you are saying that we are not prepared to take the change that far (which I tend to agree with, as I like to keep the door open for people to do things that at the first sight seem insane but later turns out to be useful in workflows we haven't imagined so far), I'd agree that not insisting on commitness under refs/remotes/ is correct.

Is that where your "refs/remotes would *not* have been correct" comes from, or did I miss something more fundamental?

Previous: Linus TorvaldsNext: Linus Torvalds
Message 4 of 5 in “Make 'git fsck' complain about non-commit branches”
  1. Linus TorvaldsJan 16, 2008
  2. Junio C HamanoJan 16, 2008
  3. Linus TorvaldsJan 16, 2008
  4. Junio C HamanoJan 16, 2008
  5. Linus TorvaldsJan 16, 2008

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.