summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 144d33d)
raw | patch | inline | side by side (parent: 144d33d)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 5 Nov 2006 11:20:25 +0000 (06:20 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 5 Nov 2006 21:36:30 +0000 (13:36 -0800) |
The only platform which actually needs to define .exe suffixes as
part of its completion set is Cygwin. So don't define them on any
other platform.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
part of its completion set is Cygwin. So don't define them on any
other platform.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/completion/git-completion.bash | patch | blob | history |
index fdfbf959b79e66be5930b644c6051871bcd4bf63..926638d5ffe4fd7c5c5ca7df9219c52dc639db73 100755 (executable)
# when the user has tab-completed the executable name and consequently
# included the '.exe' suffix.
#
+if [ Cygwin = "$(uname -o 2>/dev/null)" ]; then
complete -o default -o nospace -F _git git.exe
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_push git-push.exe
complete -o default -o nospace -F _git_log git-show-branch.exe
complete -o default -o nospace -F _git_log git-whatchanged.exe
+fi