Code

Added completion support for git-branch.exe.
authorShawn O. Pearce <spearce@spearce.org>
Sat, 4 Nov 2006 18:57:18 +0000 (13:57 -0500)
committerJunio C Hamano <junkio@cox.net>
Sun, 5 Nov 2006 01:17:45 +0000 (17:17 -0800)
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>
contrib/completion/git-completion.bash

index b074f4fe5779da8907e112c8d5af1ea60f120be5..b7b8a43de59f2db7ff9725d8506e1d0cb8704f6a 100755 (executable)
@@ -339,6 +339,7 @@ complete -o default -o nospace -F _git_log git-whatchanged
 # 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