From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, Jimmie WESTER <jimmie.wester@stericsson.com>
Subject: Re: [PATCH] remote: allow "-t" with fetch mirrors
Date: Thu, 26 May 2011 10:08:48 -0700 [thread overview]
Message-ID: <7vk4ddxucf.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20110526151100.GA2881@sigill.intra.peff.net> (Jeff King's message of "Thu, 26 May 2011 11:11:00 -0400")
Jeff King <peff@peff.net> writes:
> Commit 13fc2c1 (remote: disallow some nonsensical option
> combinations, 2011-03-30) made it impossible to use "remote
> add -t foo --mirror". The argument was that specifying
> specific branches is useless because:
>
> 1. Push mirrors do not want a refspec at all.
>
> 2. The point of fetch mirroring is to use a broad refspec
> like "refs/*", but using "-t" overrides that.
>
> Point (1) is valid; "-t" with push mirrors is useless. But
> point (2) ignored another side effect of using --mirror: it
> fetches the refs directly into the refs/ namespace as they
> are found upstream, instead of placing them in a
> separate-remote layout.
Hmmm, I still fail to see the point of ignoring "mirror" aspect and
constricting that with -t.
> So 13fc2c1 was overly constrictive, and disallowed
> reasonable specific-branch mirroring, like:
>
> git remote add -t heads/foo -t heads/bar --mirror=fetch
I mildly disagree that it is "reasonable". I would understand if it were
something like this:
git remote add -t heads/foo:heads/foo -t heads/bar:heads/bar
I am not saying selective copying is bad or useless. It would be useful
in some situations. I am saying that is not a mirror, and reusing the
same --mirror option for a different meaning may introduce confusion.
next prev parent reply other threads:[~2011-05-26 17:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 15:11 [PATCH] remote: allow "-t" with fetch mirrors Jeff King
2011-05-26 15:26 ` Johannes Sixt
2011-05-26 15:28 ` Jeff King
2011-05-26 17:08 ` Junio C Hamano [this message]
2011-05-26 17:31 ` Jeff King
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vk4ddxucf.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jimmie.wester@stericsson.com \
--cc=peff@peff.net \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.