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

Re: [PATCH] completion: support 'git config --local'

From
Jeff King <peff@peff.net>
Date
Feb 13, 2013, 00:05 UTC
Message-ID
<20130213000519.GA31758@sigill.intra.peff.net>
In-Reply-To
<7v1uclfafi.fsf@alter.siamese.dyndns.org>
On Tue, Feb 12, 2013 at 02:13:05PM -0800, Junio C Hamano wrote:
Show 14 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > I'm not sure I understand the original poster's point about "git config
> > -l --local". "-l" does not take a limiter, does it?
> 
> "git config -l core.\*" will just die without limiting the output to
> everything under core. hierarchy, so you are right---the combination
> does not make any sense.  You have to say
> 
>     git config -l | grep ^core\\.
> 
> or something like that.
> 
> Completing "git config -l --lo<TAB>" still may help, though.

Ah, I think I see Dasa's original point now. He was interested in fixing "--lo<TAB>" to complete "--local". But the line he pointed to in his original message is not the right place for that; it is the site of an unrelated spot which should _also_ be fixed to use "--local", but for a different reason (restricting the variables suggested for "--local --get <TAB>" properly).

So yeah. Matthieu's patch is the right thing to do, as it covers both (mine fixed only half of it).

-Peff
Previous: Junio C HamanoNext: Matthieu Moy
Message 8 of 9 in “git-completion.bash --local”
  1. Dasa PaddockFeb 9, 2013
  2. Jeff KingFeb 11, 2013
  3. completion: recognize "--local" as a config file sourceJeff King, Feb 12, 2013
  4. completion: support 'git config --local'Matthieu Moy, Feb 12, 2013
  5. Junio C HamanoFeb 12, 2013
  6. Jeff KingFeb 12, 2013
  7. Junio C HamanoFeb 12, 2013
  8. Jeff KingFeb 13, 2013
  9. Matthieu MoyFeb 13, 2013

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.