summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-04 18:57:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-05 01:17:45 (GMT)
commitdfb960920d4953066cb0cdf3cb6dd8a5a8d9cf14 (patch)
treefa156c034c834aee75a384f7f4f283309bfd05f8 /contrib/completion
parent9004dcbe8278b6d66f41e6e401f6d564a64fd1e1 (diff)
downloadgit-dfb960920d4953066cb0cdf3cb6dd8a5a8d9cf14.zip
git-dfb960920d4953066cb0cdf3cb6dd8a5a8d9cf14.tar.gz
git-dfb960920d4953066cb0cdf3cb6dd8a5a8d9cf14.tar.bz2
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>
Diffstat (limited to 'contrib/completion')
-rwxr-xr-xcontrib/completion/git-completion.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index b074f4f..b7b8a43 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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