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

Re: Bash tab completion for _git_fetch alias is broken on Git 1.7.7.1

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Nov 10, 2011, 07:09 UTC
Message-ID
<4EBB78C7.101@viscovery.net>
In-Reply-To
<7vehxgu0fy.fsf@alter.siamese.dyndns.org>
Am 11/10/2011 4:21, schrieb Junio C Hamano:
Show 14 quoted lines
> Nathan Broadbent <nathan.f77@gmail.com> writes:
> 
>> Dear git mailing list,
>>
>> I'm assigning the `_git_fetch` bash tab completion to the alias `gf`,
>> with the following command:
>>
>>     complete -o default -o nospace -F _git_fetch gf
>>
>> The tab completion then works fine in git 1.7.0.4, but breaks on git
>> 1.7.7.1, with the following error:
> 
> We have been cooking for 1.7.8 and have the first release candidate
> 1.7.8-rc1; could you try it and report what you find out?

It looks like _git_fetch is not meant to be called directly. All git completions must go through _git.

See also this post:
http://thread.gmane.org/gmane.comp.version-control.msysgit/13310/focus=13335
-- Hannes
Previous: Junio C HamanoNext: Nathan Broadbent
Message 3 of 9 in “Bash tab completion for _git_fetch alias is broken on Git 1.7.7.1”
  1. Nathan BroadbentNov 10, 2011
  2. Junio C HamanoNov 10, 2011
  3. Johannes SixtNov 10, 2011
  4. Nathan BroadbentNov 10, 2011
  5. SZEDER GáborNov 10, 2011
  6. Scott BronsonNov 12, 2011
  7. Scott BronsonNov 12, 2011
  8. Nathan BroadbentNov 12, 2011
  9. Nathan BroadbentNov 10, 2011

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.