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

Re: Which freedesktop.org "design flaws" in git are still relevant?

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 29, 2008, 21:50 UTC
Message-ID
<7vmypjbfex.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<m3hcfrjwnk.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 7 quoted lines
>> * git-fetch requires that the branch be named on both sides of
>>   the :. It should treat 'foo' as an alias for 'foo:foo'.
>
> So 'foo' is treated as 'foo:' (which means fetch, and not store), and
> not as 'foo:foo'. It is perhaps a bit strange, but backward
> compatibility would I think prohibit us to change it, even if it would
> make more sense to have it be shortcut for 'foo:foo' instead.

It is not strange nor b/c requirement at all. If anything, it could default to "foo:remotes/$remote/foo", not "foo:foo", but even then, it shouldn't.

You are missing a bigger picture. I think the list predates the introduction of separate remotes, which has been the default for more than a year.

You would have "fetch = refs/heads/*:refs/remotes/origin/*" these days in the configuration by default. What this means is that you would have much less reason to run "fetch $there foo" to begin with. The only time you would fetch in that way is when you want an unconfigured, single-shot fetch, in which case you do _NOT_ want tracking. So there is no valid reason to default "foo" to "foo:<anything>", unless that <anything> is empty. Not to foo:foo, not to foo:remotes/$remote/foo.

Many of the remaining parts of the complaint list share the misunderstanding coming from the lack of understanding of separate remotes layout.

Previous: Jakub NarebskiNext: Daniel Barkalow
Message 5 of 9 in “Which freedesktop.org "design flaws" in git are still relevant?”
  1. Elijah NewrenFeb 29, 2008
  2. Nicolas PitreFeb 29, 2008
  3. Jakub NarebskiFeb 29, 2008
  4. Jakub NarebskiFeb 29, 2008
  5. Junio C HamanoFeb 29, 2008
  6. Daniel BarkalowFeb 29, 2008
  7. Jay SoffianFeb 29, 2008
  8. Jay SoffianFeb 29, 2008
  9. Daniel BarkalowFeb 29, 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.