Re: [RFC/PATCH] Introduce remote.pushdefault

2013-03-18 Thread Ramkumar Ramachandra
Jeff King wrote: > So the push lookup list is (in order of precedence): > > 1. branch.*.pushremote > 2. remote.pushdefault > 3. branch.*.remote > 4. remote.default > 5. origin > > and it solves Junio's issue because the way to say "override my > remote.pushdefault for this branch" is not

Re: [RFC/PATCH] Introduce remote.pushdefault

2013-03-16 Thread Junio C Hamano
Ramkumar Ramachandra writes: > How will adding remote.pushdefault have any > impact, unless I explicitly remove this branch-specific remote > configuration? Besides, without branch..remote configured, I > can't even pull and expect changes to be merged. If the triangle topology is the norm for

Re: [RFC/PATCH] Introduce remote.pushdefault

2013-03-16 Thread Jeff King
On Sun, Mar 17, 2013 at 06:00:08AM +0530, Ramkumar Ramachandra wrote: > >> +remote.pushdefault:: > >> + The remote to push to by default. Overrides the > >> + branch-specific configuration `branch..remote`. > > > > It feels unexpected to see "I may have said while on this branch I > > pus

Re: [RFC/PATCH] Introduce remote.pushdefault

2013-03-16 Thread Ramkumar Ramachandra
Sorry about the horribly late response- I just got around to re-rolling this, and had a doubt. Junio C Hamano wrote: > Ramkumar Ramachandra writes: > >> diff --git a/Documentation/config.txt b/Documentation/config.txt >> index 9b11597..82a4a78 100644 >> --- a/Documentation/config.txt >> +++ b/Do

Re: [RFC/PATCH] Introduce remote.pushdefault

2013-02-08 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > Ramkumar Ramachandra writes: > >> diff --git a/Documentation/config.txt b/Documentation/config.txt >> index 9b11597..82a4a78 100644 >> --- a/Documentation/config.txt >> +++ b/Documentation/config.txt >> @@ -1884,6 +1884,10 @@ receive.updateserverinfo:: >> If set to tr

Re: [RFC/PATCH] Introduce remote.pushdefault

2013-02-08 Thread Junio C Hamano
Ramkumar Ramachandra writes: > diff --git a/Documentation/config.txt b/Documentation/config.txt > index 9b11597..82a4a78 100644 > --- a/Documentation/config.txt > +++ b/Documentation/config.txt > @@ -1884,6 +1884,10 @@ receive.updateserverinfo:: > If set to true, git-receive-pack will run g

[RFC/PATCH] Introduce remote.pushdefault

2013-02-08 Thread Ramkumar Ramachandra
This new configuration variable overrides branch-specific configuration `branch..remote` for pushes. It is useful in the typical scenario, where the remote I'm pulling from is not the remote I'm pushing to. Signed-off-by: Ramkumar Ramachandra --- Junio C Hamano wrote: > As the first cut, I wou