Skip to content

Commit dfb9609

Browse files
spearceJunio C Hamano
authored andcommitted
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. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 9004dcb commit dfb9609

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ complete -o default -o nospace -F _git_log git-whatchanged
339339
# when the user has tab-completed the executable name and consequently
340340
# included the '.exe' suffix.
341341
#
342+
complete -o default -F _git_branch git-branch.exe
342343
complete -o default -o nospace -F _git_cat_file git-cat-file.exe
343344
complete -o default -o nospace -F _git_diff git-diff.exe
344345
complete -o default -o nospace -F _git_diff_tree git-diff-tree.exe

0 commit comments

Comments
 (0)