Skip to contentSkip to conversation

Added completion support for git-branch.exe.

PATCH In review Shawn O. Pearce 1 participant 1 message Aug 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Added completion support for git-branch.exe.

On Cygwin a user might complete the new git-branch builtin as git-branch.exe, at which point bash requires a new completion registration for the command.

---
 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
contrib/completion/git-completion.bash +1 -0
index b074f4f..b7b8a43 100755
@@ -339,6 +339,7 @@ complete -o default -o nospace -F _git_l
 # when the user has tab-completed the executable name and consequently
 # included the '.exe' suffix.
 #
+complete -o default            -F _git_branch git-branch.exe
 complete -o default -o nospace -F _git_cat_file git-cat-file.exe
 complete -o default -o nospace -F _git_diff git-diff.exe
 complete -o default -o nospace -F _git_diff_tree git-diff-tree.exe
Signature · 1 line
1.4.3.3.g1a30