From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [RFC/PATCH 3/3] push: add separate 'downstream' branch
Date: Thu, 16 May 2013 17:01:50 +0530 [thread overview]
Message-ID: <CALkWK0nBUHHkqOQannMu5Kjs00Fro8KBbiocfsT4Uf74jO9FgA@mail.gmail.com> (raw)
In-Reply-To: <CAMP44s1eB+bvg7vnG5S3SBACHTrkpCqJNX-Q2tzEVdvzFWvkcA@mail.gmail.com>
Felipe Contreras wrote:
> Would I be able to do:
>
> % git branch --set-upstream-to origin/master --set-downstream-to
> github/fc/master
>
> ?
>
> Would I see these branches when I do 'git branch -vv'?
> Would I be able to do 'git push next@{downstream}'?
Hm, losing this functionality in the name of generality would
certainly be very undesirable.
> That is orthogonal to 'branch.A.push' the same way 'remote.B.fetch' is
> orthogonal to 'branch.A.merge'.
Not at all (which is what I've been trying to say).
remote.<name>.fetch is operated on by fetch, while branch.<name>.merge
is operated on by merge; they are really orthogonal. What happens if
both branch.<name>.push and remote.<name>.push are set? What will
push do?
Perhaps we should get both, and get branch.<name>.push to override
remote.<name>.push. The issue being @{d} will not work if
remote.<name>.push is set. Then again, since we're targeting Gerrit
users here, I don't really think it's an issue: refs/for/master is not
really a "downstream branch"; it's a pseudo-ref that Gerrit handles
internally.
next prev parent reply other threads:[~2013-05-16 11:32 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 3:43 [RFC/PATCH 0/3] New kind of upstream branch: downstream branch Felipe Contreras
2013-05-16 3:43 ` [RFC/PATCH 1/3] remote: don't override default if cur head remote is '.' Felipe Contreras
2013-05-16 3:43 ` [RFC/PATCH 2/3] pull: trivial cleanups Felipe Contreras
2013-05-16 8:29 ` Ramkumar Ramachandra
2013-05-16 8:56 ` Felipe Contreras
2013-05-16 9:34 ` Ramkumar Ramachandra
2013-05-16 9:36 ` Felipe Contreras
2013-05-16 9:54 ` Ramkumar Ramachandra
2013-05-16 10:15 ` Felipe Contreras
2013-05-16 10:18 ` Ramkumar Ramachandra
2013-05-16 10:24 ` Felipe Contreras
2013-05-16 11:54 ` Antoine Pelisse
2013-05-16 13:36 ` Felipe Contreras
2013-05-16 3:43 ` [RFC/PATCH 3/3] push: add separate 'downstream' branch Felipe Contreras
2013-05-16 5:36 ` Junio C Hamano
2013-05-16 6:00 ` Felipe Contreras
2013-05-16 6:14 ` Junio C Hamano
2013-05-16 15:24 ` Junio C Hamano
2013-05-16 8:21 ` Ramkumar Ramachandra
2013-05-16 9:05 ` Felipe Contreras
2013-05-16 9:20 ` Ramkumar Ramachandra
2013-05-16 9:33 ` Felipe Contreras
2013-05-16 10:06 ` Ramkumar Ramachandra
2013-05-16 10:22 ` Felipe Contreras
2013-05-16 11:31 ` Ramkumar Ramachandra [this message]
2013-05-16 13:32 ` Felipe Contreras
2013-05-16 13:52 ` Ramkumar Ramachandra
2013-05-16 14:53 ` Felipe Contreras
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=CALkWK0nBUHHkqOQannMu5Kjs00Fro8KBbiocfsT4Uf74jO9FgA@mail.gmail.com \
--to=artagnon@gmail.com \
--cc=felipe.contreras@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).