Merge branch 'jh/checkout-auto-tracking'
commit77eb44b8ed601a17a5ec9b1fb8c4c53ba10aaa56
authorJunio C Hamano <gitster@pobox.com>
Wed, 29 May 2013 21:23:10 +0000 (29 14:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 May 2013 21:23:10 +0000 (29 14:23 -0700)
tree9f4d26a64befc377a299f2b98ac551cc824e28a9
parent3e1e7624aa2aa39890ca49d0f7bd3af397c22b03
parent229177aaea295a3f804f98494d7bcde9c088fc0a
Merge branch 'jh/checkout-auto-tracking'

Update "git checkout foo" that DWIMs the intended "upstream" and
turns it into "git checkout -t -b foo remotes/origin/foo" to
correctly take existing remote definitions into account.

The remote "origin" may be what uniquely map its own branch to
remotes/some/where/foo but that some/where may not be "origin".

* jh/checkout-auto-tracking:
  glossary: Update and rephrase the definition of a remote-tracking branch
  branch.c: Validate tracking branches with refspecs instead of refs/remotes/*
  t9114.2: Don't use --track option against "svn-remote"-tracking branches
  t7201.24: Add refspec to keep --track working
  t3200.39: tracking setup should fail if there is no matching refspec.
  checkout: Use remote refspecs when DWIMming tracking branches
  t2024: Show failure to use refspec when DWIMming remote branch names
  t2024: Add tests verifying current DWIM behavior of 'git checkout <branch>'
Documentation/git-checkout.txt
Documentation/glossary-content.txt
branch.c
builtin/checkout.c