Re: [PATCH] remote: allow "-t" with fetch mirrors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 26, 2011 at 10:08:48AM -0700, Junio C Hamano wrote:

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

I think of it as "you are mirroring these specific refs to your
repository" instead of "you are fetching these specific refs into remote
tracking branches". But it is somewhat a matter of semantics.

I agree that allowing generalized refspecs via "-t" is a nicer solution
in the long run.  I am mostly trying to fix a regression in 13fc2c1
here; I guess the question is whether it is one worth fixing, or if
people who want to do this in the meantime should just use "git config".

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]