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

Re: [PATCH] git-completion: Add git help completion for aliases

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Mar 22, 2011, 21:21 UTC
Message-ID
<20110322212131.GB30604@neumann>
In-Reply-To
<7vsjufkqxl.fsf@alter.siamese.dyndns.org>
On Tue, Mar 22, 2011 at 10:25:58AM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> SZEDER Gábor <szeder@ira.uka.de> writes:
> 
> > I think this is not necessary.  We already run __git_aliases() every
> > time after 'git <TAB>', and it was not an issue so far.
> 
> If we allow that line of reasoning, the cached $__git_all_commands that
> can go stale needs to be removed, no?  I think folks running bash on
> windows wanted it and it would be helping them.
Well, Shawn wrote that it was your request ;)
  http://thread.gmane.org/gmane.comp.version-control.git/32444
  http://thread.gmane.org/gmane.comp.version-control.git/32438

But there was indeed a remark shortly before that about bad fork-exec performance under Cygwin on an other topic.

> One valid looking argument against caching aliases but still caching
> commands is that the former could change on the end user's whim while the
> latter is more or less stable across releases,
Agreed.
> but people can throw their
> own "git-frotz" in their path and run it as "git frotz"

Also agreed, and been annoyed by it not being recognized automatically. In fact I've even tried to make the completion script detect user's commands on the fly but still without that huge loop over the 'git help -a' output in __git_list_porcelain_commands(), but couldn't come up with anything acceptable so far. And simply re-sourcing the completion script is not all that difficult, which will also take care of refreshing cached aliases, so...

> so that is not
> entirely a valid argument, either.
agreed here, too.

Best, Gábor

Previous: Junio C HamanoNext: SZEDER Gábor
Message 17 of 19 in “git-completion: Add git help completion for aliases”
  1. git-completion: Add git help completion for aliasesJakob Pfender, Mar 21, 2011
  2. Junio C HamanoMar 21, 2011
  3. Johannes SchindelinMar 21, 2011
  4. Junio C HamanoMar 22, 2011
  5. Johannes SchindelinMar 22, 2011
  6. SZEDER GáborMar 22, 2011
  7. Erik Faye-LundMar 22, 2011
  8. Erik Faye-LundMar 22, 2011
  9. SZEDER GáborMar 22, 2011
  10. Erik Faye-LundMar 22, 2011
  11. Michael J GruberMar 22, 2011
  12. SZEDER GáborMar 22, 2011
  13. Erik Faye-LundMar 23, 2011
  14. Jakub NarebskiMar 23, 2011
  15. Erik Faye-LundMar 23, 2011
  16. Junio C HamanoMar 22, 2011
  17. SZEDER GáborMar 22, 2011
  18. SZEDER GáborMar 22, 2011
  19. Michael J GruberMar 22, 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.