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

Re: [PATCHv2 2/2] completion: fix alias listings with newlines

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 9, 2009, 14:29 UTC
Message-ID
<20091009142950.GS9261@spearce.org>
In-Reply-To
<1255069304-8953-2-git-send-email-bebarino@gmail.com>
Stephen Boyd <bebarino@gmail.com> wrote:
Show 7 quoted lines
> Aliases with newlines have been a problem since commit 56fc25f (Bash
> completion support for remotes in .git/config., 2006-11-05). The chance
> of the problem occurring has been slim at best, until commit 518ef8f
> (completion: Replace config --list with --get-regexp, 2009-09-11)
> removed the case statement introduced by commit 56fc25f. Before removing
> the case statement, most aliases with newlines would work unless they
> were specially crafted as follows
...
> Hannes has convinced me to go this route. I don't really see a problem, it
> basically reverts to broken behavior that nobody's complained about in 3
> years. At least it's less broken?

Yay. Given that we have no better solution easily available, I like the idea of just reverting to the behavior we have had for the past 3 years. Thanks.

Acked-by: Shawn O. Pearce <spearce@spearce.org>
 
-- 
Shawn.
Previous: Stephen BoydNext: Shawn O. Pearce
Message 3 of 4 in “completion: fix completion of git <TAB><TAB>”
  1. 1/2 completion: fix completion of git <TAB><TAB>Stephen Boyd, Oct 9, 2009
  2. 2/2 completion: fix alias listings with newlinesStephen Boyd, Oct 9, 2009
  3. Shawn O. PearceOct 9, 2009
  4. Shawn O. PearceOct 9, 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.