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

Re: [PATCH] completion: Replace config --list with --get-regexp

From
Todd Zullinger <tmz@pobox.com>
Date
Sep 13, 2009, 18:29 UTC
Message-ID
<20090913182937.GR2582@inocybe.localdomain>
In-Reply-To
<36ca99e90909130351m7ad5a641t8adb3ade3d2ec5ca@mail.gmail.com>
Bert Wesarg wrote:
> I have not looked into this, but what about pushurl?

Is it reasonable to expect someone to have remote.<name>.pushurl and not have remote.<name>.url set? If not, then we should be fine, as all the old code and this new code do is extract <name>.

OTOH, if there are some cases where setting pushurl and not url make sense, extending the regex to catch pushurl as well is a simple matter of changing 'remote\..*\.url' to 'remote\..*\.(push)?url' and, I believe, using 'echo "${i/.*url*/}"' to strip off everything after the remote <name>.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fleas can be taught nearly anything that a Congressman can.
    -- Mark Twain
Previous: Bert WesargNext: Junio C Hamano
Message 19 of 20 in “bash_completion outside repo”
  1. james bardinSep 10, 2009
  2. Michael J GruberSep 11, 2009
  3. Todd ZullingerSep 11, 2009
  4. james bardinSep 11, 2009
  5. Jeff KingSep 11, 2009
  6. Shawn O. PearceSep 11, 2009
  7. Jeff KingSep 11, 2009
  8. Jeff KingSep 11, 2009
  9. Junio C HamanoSep 11, 2009
  10. Jeff KingSep 11, 2009
  11. Junio C HamanoSep 11, 2009
  12. Jeff KingSep 11, 2009
  13. Junio C HamanoSep 11, 2009
  14. Junio C HamanoSep 11, 2009
  15. Jeff KingSep 11, 2009
  16. completion: Replace config --list with --get-regexpTodd Zullinger, Sep 11, 2009
  17. Shawn O. PearceSep 12, 2009
  18. Bert WesargSep 13, 2009
  19. Todd ZullingerSep 13, 2009
  20. Junio C HamanoSep 13, 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.