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

Re: git push bash completion

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
Mar 5, 2009, 23:15 UTC
Message-ID
<200903060015.39834.markus.heidelberg@web.de>
In-Reply-To
<fabb9a1e0903051430k5628fe26v4749360e026ac7d2@mail.gmail.com>
Sverre Rabbelier, 05.03.2009:
Show 11 quoted lines
> Heya,
> 
> Observe:
> $ git push ori<tab>
>   git push origin
> 
> $ git push -f ori<tab>
>   git push -f origin/
> 
> Something weird going on there, or is this intentional and am I
> missing something?

Something similar happens with fetch and pull. They only complete the remote name, when exactly 2 words are existing on the command line ("git" and the subcommand) by: if [ "$COMP_CWORD" = 2 ]

Doesn't seem right.
Markus
Previous: Sverre RabbelierNext: Jay Soffian
Message 2 of 3 in “git push bash completion”
  1. Sverre RabbelierMar 5, 2009
  2. Markus HeidelbergMar 5, 2009
  3. Jay SoffianMar 6, 2009

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.