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

Re: [PATCH 1/3] completion: fix alias listings with newlines

From
Stephen Boyd <bebarino@gmail.com>
Date
Oct 8, 2009, 07:34 UTC
Message-ID
<4ACD961D.9080401@gmail.com>
In-Reply-To
<20091008042917.GX9261@spearce.org>
Shawn O. Pearce wrote:
>
> Yes, we should try to avoid spawning a process here, it fires on
> each completion attempt if I recall.
>

Ok. It looks like it fires on every completion with no command (i.e. git <TAB><TAB>). I don't particularly like my solution anyways, and this has existed for a long time (56fc25f maybe?) with no one noticing. A fix for it is probably not too pressing.

I found another problem, [ARGS] and COMMAND show up in git <TAB><TAB>. Looks like it's due to the wrapping of git's usage string.

Show 6 quoted lines
>
> Or a format string with a language based escape like for-each-ref
> supports?  Might make it easier to use git config in scripts if we
> can write things like:
>
>   git config --format='$data{%(key)}=%(value);' --perl
This sounds reasonable, but also like more work ;-)
Previous: Shawn O. PearceNext: Johannes Sixt
Message 9 of 15 in “completion: fix alias listings with newlines”
  1. 1/3 completion: fix alias listings with newlinesStephen Boyd, Oct 7, 2009
  2. 2/3 completion: update am, commit, and logStephen Boyd, Oct 7, 2009
  3. 3/3 completion: add dirstat and friends to diff optionsStephen Boyd, Oct 7, 2009
  4. Junio C HamanoOct 7, 2009
  5. Junio C HamanoOct 7, 2009
  6. Johannes SixtOct 7, 2009
  7. Stephen BoydOct 7, 2009
  8. Shawn O. PearceOct 8, 2009
  9. Stephen BoydOct 8, 2009
  10. Johannes SixtOct 8, 2009
  11. Stephen BoydOct 8, 2009
  12. Johannes SixtOct 8, 2009
  13. Junio C HamanoOct 7, 2009
  14. Shawn O. PearceOct 8, 2009
  15. Stephen BoydOct 8, 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.