Merge branch 'tg/worktree-add-existing-branch'
commit10174da9f1643eb939d93d479547494baf77377b
authorJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:18 +0000 (23 14:38 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:18 +0000 (23 14:38 +0900)
tree7984b987bc20e55d21c26d83569eabb11928256d
parent352cf6cfe138b1dbcf9c105c91ca793b67511d7b
parentf60a7b763fe070161b332d3878f81a7f09ab6e44
Merge branch 'tg/worktree-add-existing-branch'

"git worktree add" learned to check out an existing branch.

* tg/worktree-add-existing-branch:
  worktree: teach "add" to check out existing branches
  worktree: factor out dwim_branch function
  worktree: improve message when creating a new worktree
  worktree: remove extra members from struct add_opts
Documentation/git-worktree.txt
builtin/worktree.c
t/t2025-worktree-add.sh