remote.c: introduce remote.pushdefault
commit224c2171637ee71c36cb6b0ed314d14216725d6f
authorRamkumar Ramachandra <artagnon@gmail.com>
Tue, 2 Apr 2013 07:40:33 +0000 (2 13:10 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 17:41:42 +0000 (2 10:41 -0700)
tree711aa2f13216d2c8676481515efa11c7ab84a676
parentf24f715e05399cba19cb9455fdd7d8a9806fe61b
remote.c: introduce remote.pushdefault

This new configuration variable defines the default remote to push to,
and overrides `branch.<name>.remote` for all branches.  It is useful
in the typical triangular-workflow setup, where the remote you're
fetching from is different from the remote you're pushing to.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
remote.c
t/t5516-fetch-push.sh