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

[PATCH] git bash completion handles alias options

From
JRJerome Reybert <jreybert@gmail.com>
Date
Aug 9, 2012, 20:52 UTC
Message-ID
<1344545544-8538-1-git-send-email-jreybert@gmail.com>

git bash completion now handles git alias options. It means that options which change the completion behavior for complete commands will also change the behavior of completion for aliased command.

bash completion now handle git alias options. I did a use case in another commit: a checkout alias which only complete local branches, ie. only 'refs' ones, not 'remotes'. With this new alias completion, I added an option to do that in checkout command and hacked _git_checkout complete function.

Best,
  Jerome
Jerome Reybert (1):
  git bash completion handles alias options
 contrib/completion/git-completion.bash | 31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)
-- 
1.7.12.rc0.91.gf4edd99
Next: Jerome Reybert
Message 1 of 2 in “git bash completion handles alias options”
  1. git bash completion handles alias optionsJerome Reybert, Aug 9, 2012
  2. git bash completion handles alias optionsJerome Reybert, Aug 9, 2012

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.