From: Junio C Hamano <gitster@pobox.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Felipe Contreras <felipe.contreras@gmail.com>, git@vger.kernel.org
Subject: Re: Random thoughts on "upstream"
Date: Sun, 19 May 2013 21:28:03 -0700 [thread overview]
Message-ID: <7vfvxixoks.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: CALkWK0=6L529C452MaNGksL5KeVb+cL1SeC=FwA9veS=tNQurA@mail.gmail.com
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> I suspect that the issue you're trying to address is:
>
> [remote "ram"]
> push = refs/heads/*:refs/heads/rr/*
>
> not dictating which refs to push when I say 'git push' (it'll push all
> the refs under refs/heads/*, not respecting push.default=current in my
> scheme).
That is not what I was addressing. You outlined your scenario as
"you were not, but you are now, allowed to push an approved ref into
'origin'". And you do so under a different name. That is why I set
that rr/ renaming push refspec for a remote ORIGIN not RAM.
And that was done with extensivility your example implied in mind:
you may later be allowed to push other branches as well to origin.
That is why the refspec definition for 'origin' does not hardcode
the name of the branch you are permitted to push there at this
moment. The fact that hot-branch goes to origin is encapsulated in
the branch.hot-branch.pushremote. The rule, under which the name of
any branch that goes to the origin is renamed, is encapsulated in
remote.origin.push refspec (the introduction of the new mode
"push.default = single" is necessary to make this work).
When making that change, our fictitious ram did not have to touch
"remote.ram.push" *at all*. Independent of what the owner of
"origin" and ram agreed in that example, ram would keep doing
exactly the same thing to his own publishing point so that people
who are working off of his work would get updates from the place
known to contain his work from before.
So with "git push ram", it will push everything to "ram" under the
same name *without* rr/ renaming, but that was *by design*, not
something I wanted to or I needded to work around. And you would
also push to "origin" by doing "git push" while on hot-topic branch.
next prev parent reply other threads:[~2013-05-20 4:28 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
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 [this message]
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=7vfvxixoks.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=artagnon@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
/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).