git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: "Elijah Newren" <newren@gmail.com>, git@vger.kernel.org
Subject: Re: Which freedesktop.org "design flaws" in git are still relevant?
Date: Fri, 29 Feb 2008 13:50:46 -0800	[thread overview]
Message-ID: <7vmypjbfex.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <m3hcfrjwnk.fsf@localhost.localdomain> (Jakub Narebski's message of "Fri, 29 Feb 2008 13:11:15 -0800 (PST)")

Jakub Narebski <jnareb@gmail.com> writes:

>> * 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.

  reply	other threads:[~2008-02-29 21:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29 20:32 Which freedesktop.org "design flaws" in git are still relevant? Elijah Newren
2008-02-29 20:56 ` Nicolas Pitre
2008-02-29 21:16   ` Jakub Narebski
2008-02-29 21:11 ` Jakub Narebski
2008-02-29 21:50   ` Junio C Hamano [this message]
2008-02-29 21:58   ` Daniel Barkalow
2008-02-29 22:40     ` Jay Soffian
2008-02-29 22:52       ` Jay Soffian
2008-02-29 22:58       ` Daniel Barkalow

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=7vmypjbfex.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=newren@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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).