Merge branch 'sg/completion-worktree'
commitfec1ff97c2b3c9c5db7e8f2df8d2c81cb94972fd
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Jan 2020 22:17:09 +0000 (30 14:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jan 2020 22:17:09 +0000 (30 14:17 -0800)
tree1e07ad7a23ca8e40014330a092ff86e434b500b4
parentc7372c9e2c11fa0adbfef2b9c5e5ba4ce19eb688
parent7d5ecd775de33878f00055e0024a003ab4edfbce
Merge branch 'sg/completion-worktree'

The command line completion (in contrib/) learned to complete
subcommands and arguments to "git worktree".

* sg/completion-worktree:
  completion: list paths and refs for 'git worktree add'
  completion: list existing working trees for 'git worktree' subcommands
  completion: simplify completing 'git worktree' subcommands and options
  completion: return the index of found word from __git_find_on_cmdline()
  completion: clean up the __git_find_on_cmdline() helper function
  t9902-completion: add tests for the __git_find_on_cmdline() helper
contrib/completion/git-completion.bash
t/t9902-completion.sh