Merge branch 'ab/checkout-default-remote'
commit50858edd1aa063d3ee2ecb48672c43630cea9070
authorJunio C Hamano <gitster@pobox.com>
Thu, 2 Aug 2018 22:30:41 +0000 (2 15:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Aug 2018 22:30:41 +0000 (2 15:30 -0700)
tree16e42089e479d0776ff94fa9621daf6f815a6668
parenta81575aa91a015535374bb5b1e0e6dc2a81c74ab
parent8d7b558baebe3abbbad4973ce1e1f87a7da17f47
Merge branch 'ab/checkout-default-remote'

"git checkout" and "git worktree add" learned to honor
checkout.defaultRemote when auto-vivifying a local branch out of a
remote tracking branch in a repository with multiple remotes that
have tracking branches that share the same names.

* ab/checkout-default-remote:
  checkout & worktree: introduce checkout.defaultRemote
  checkout: add advice for ambiguous "checkout <branch>"
  builtin/checkout.c: use "ret" variable for return
  checkout: pass the "num_matches" up to callers
  checkout.c: change "unique" member to "num_matches"
  checkout.c: introduce an *_INIT macro
  checkout.h: wrap the arguments to unique_tracking_name()
  checkout tests: index should be clean after dwim checkout
Documentation/config.txt
advice.c
advice.h
builtin/checkout.c