{"thread":{"id":"43784","subject":"[PATCH 2/6] Only load .exe suffix'd completions on Cygwin.","startedAt":"2006-11-05T11:20:25Z","lastAt":"2006-11-05T11:20:25Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"298755","messageId":"20061105112025.GB20495@spearce.org","threadId":"43784","inReplyTo":null,"subject":"[PATCH 2/6] Only load .exe suffix'd completions on Cygwin.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-11-05T11:20:25Z","receivedAt":"2006-11-05T11:20:25Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"The only platform which actually needs to define .exe suffixes as\npart of its completion set is Cygwin.  So don't define them on any\nother platform.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n contrib/completion/git-completion.bash |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex fdfbf95..926638d 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -350,6 +350,7 @@ complete -o default -o nospace -F _git_l\n # when the user has tab-completed the executable name and consequently\n # included the '.exe' suffix.\n #\n+if [ Cygwin = \"$(uname -o 2>/dev/null)\" ]; then\n complete -o default -o nospace -F _git git.exe\n complete -o default            -F _git_branch git-branch.exe\n complete -o default -o nospace -F _git_cat_file git-cat-file.exe\n@@ -361,3 +362,4 @@ complete -o default            -F _git_m\n complete -o default -o nospace -F _git_push git-push.exe\n complete -o default -o nospace -F _git_log git-show-branch.exe\n complete -o default -o nospace -F _git_log git-whatchanged.exe\n+fi\n-- \n1.4.3.3.g9621\n"}]}