Merge branch 'jc/push-refmap'
commit7cdebd8a2039cb3ec717b880709ea6dfd824e3c4
authorJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2013 22:57:50 +0000 (27 14:57 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2013 22:57:50 +0000 (27 14:57 -0800)
treef07fff24eb335bc59849625af60378a869f766a8
parent7794a680e63a2a11b73cb1194653662f2769a792
parentfc9261ca611080b1dae76b86b3bf5f36d592042f
Merge branch 'jc/push-refmap'

Make "git push origin master" update the same ref that would be
updated by our 'master' when "git push origin" (no refspecs) is run
while the 'master' branch is checked out, which makes "git push"
more symmetric to "git fetch" and more usable for the triangular
workflow.

* jc/push-refmap:
  push: also use "upstream" mapping when pushing a single ref
  push: use remote.$name.push as a refmap
  builtin/push.c: use strbuf instead of manual allocation
builtin/push.c
remote.c
remote.h