path: root/t/
diff options
authorJacob Keller <>2020-05-28 18:10:41 (GMT)
committerJunio C Hamano <>2020-05-28 19:53:24 (GMT)
commit58a2ca37a1eba901ba14f1991108b1c8e85dfd22 (patch)
treecbc7f4b7967c634d99a04d2aaa2813eaee061cca /t/
parent0408c6b412a6b6f5fa7d1c33424ef00ad8c93533 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
0 files changed, 0 insertions, 0 deletions