summaryrefslogtreecommitdiff
path: root/contrib/workdir/git-new-workdir
diff options
context:
space:
mode:
authorLibravatar Jacob Keller <jacob.keller@gmail.com>2020-05-28 11:10:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-05-28 12:53:24 -0700
commit58a2ca37a1eba901ba14f1991108b1c8e85dfd22 (patch)
treecbc7f4b7967c634d99a04d2aaa2813eaee061cca /contrib/workdir/git-new-workdir
parentcompletion: replace overloaded track term for __git_complete_refs (diff)
downloadtgif-58a2ca37a1eba901ba14f1991108b1c8e85dfd22.tar.xz
completion: extract function __git_dwim_remote_heads
__git_refs() has the ability to report unique remote names for supporting completion of remote branch names for the DWIMery of git checkout and git switch. For git checkout, this is fine, because it always supports completing all local references. However, git switch by default only supports either switching branches or using this DWIMery to create a local branch tracking the remote branch. Future work to cleanup and improve completion support for git switch will be aided if the remote branch names can be completed separately from __git_refs. Extract this logic to a function __git_dwim_remote_heads(), and use it in __git_refs. Signed-off-by: Jacob Keller <jacob.keller@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/workdir/git-new-workdir')
0 files changed, 0 insertions, 0 deletions