From: Felipe Contreras <felipe.contreras@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Ramkumar Ramachandra <artagnon@gmail.com>
Subject: Re: Random thoughts on "upstream"
Date: Thu, 16 May 2013 20:59:38 -0500 [thread overview]
Message-ID: <CAMP44s1atVbN6CXAud4XzkKjAJOwoobF5uiXX12pBut0Becydw@mail.gmail.com> (raw)
In-Reply-To: <7vzjvu1jes.fsf@alter.siamese.dyndns.org>
On Thu, May 16, 2013 at 8:31 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Felipe Contreras <felipe.contreras@gmail.com> writes:
>>
>>> What happens if I want to push to 'refs/heads/topics/frotz-for-juno'?
>>
>> You would weigh pros-and-cons of supporting such a "single branch
>> only" special case, and add a branch level override, and if the
>> benefit outweighs the cost of complexity, design and implement it.
>>
>> The push.default setting is to make sure we have a simple mechanism
>> to cover more common cases, and my suspicion is what 'current' gives
>> us is already there without the need for 'single'.
>
> Actually, I suspect that you shouldn't even need to do that
> pros-and-cons analysis, because the 'single' thing should cover as a
> natural extension of the existing infrastructure. You should only
> need to have something like this:
>
> [remote "there"]
> url = ... were you push ...
> push = refs/heads/frotz:refs/heads/topics/frotz-for-juno
> push = refs/heads/*:refs/heads/topics/*
>
> Without the 'single', your 'frotz' will be pushed to update
> heads/topics/frotz-for-juno, not heads/topics/frotz, because the
> exact refspec match will prevent it from matched twice by the
> wildcarded one. The imagined 'single' mode would just limit the
> push to the current branch, so it would end up pushing to the branch
> you want to update, without sending an extra copy to the same name.
And would 'git branch --set-downstream-to github/frotz-for-juno' do
that? If not it's basically useless for 99% of the users who never
fiddle with push refspecs.
--
Felipe Contreras
next prev parent reply other threads:[~2013-05-17 1:59 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 17:55 Random thoughts on "upstream" Junio C Hamano
2013-05-16 23:03 ` Felipe Contreras
2013-05-16 23:17 ` Junio C Hamano
2013-05-17 0:00 ` Felipe Contreras
2013-05-17 1:31 ` Junio C Hamano
2013-05-17 1:59 ` Felipe Contreras [this message]
2013-05-17 2:00 ` Felipe Contreras
2013-05-17 12:43 ` Ramkumar Ramachandra
2013-05-17 16:45 ` Junio C Hamano
2013-05-17 17:01 ` Ramkumar Ramachandra
2013-05-17 17:51 ` Junio C Hamano
2013-05-18 18:27 ` Ramkumar Ramachandra
2013-05-18 20:07 ` Ramkumar Ramachandra
2013-05-18 22:36 ` Felipe Contreras
2013-05-18 22:33 ` Felipe Contreras
2013-05-19 5:58 ` Junio C Hamano
2013-05-19 11:44 ` Ramkumar Ramachandra
2013-05-19 11:48 ` Felipe Contreras
2013-05-19 11:54 ` Ramkumar Ramachandra
2013-05-19 12:00 ` Felipe Contreras
2013-05-20 4:28 ` Junio C Hamano
2013-05-23 10:42 ` Ramkumar Ramachandra
2013-05-23 10:53 ` Felipe Contreras
2013-05-23 17:25 ` Junio C Hamano
2013-05-23 17:41 ` Ramkumar Ramachandra
2013-05-24 6:39 ` Ramkumar Ramachandra
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=CAMP44s1atVbN6CXAud4XzkKjAJOwoobF5uiXX12pBut0Becydw@mail.gmail.com \
--to=felipe.contreras@gmail.com \
--cc=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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.
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 NNTP newsgroup(s).