git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Added completion support for git-branch.exe.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Nov 4, 2006, 18:57 UTC
Message-ID
<20061104185718.GA2500@spearce.org>

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>
---
 contrib/completion/git-completion.bash |    1 +
 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_l
 # 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
-- 
1.4.3.3.g1a30
Message 1 of 1 in “Added completion support for git-branch.exe.”
  1. 1/2 Added completion support for git-branch.exe.Shawn O. Pearce, Nov 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.