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

Re: support block comments in gitconfig

From
stefan.naewe@atlas-elektronik.com <stefan.naewe@atlas-elektronik.com>
Date
Apr 5, 2016, 12:53 UTC
Message-ID
<5703B560.8070902@atlas-elektronik.com>
In-Reply-To
<CANri+ExqdM-TTibWK07B2VFns6fQ09fmbqbCKC1VWET1tgRFNA@mail.gmail.com>
Am 05.04.2016 um 04:19 schrieb Timothee Cour:
Show 9 quoted lines
> Could we have block comments in gitconfig?
> It's a nice-to-have supported in most languages.
> eg:
> 
> #{
> commented out block
> #}
> 
> or other intuitive syntax

Maybe not what you're looking for, but couldn't you use the include functionality of gitconfig:

[include]
  path = ~/.another.gitconfig
??
That way you can comment out a lot of configuration with one '#'.
Just my €0.02
Stefan
-- 
----------------------------------------------------------------
/dev/random says: Air conditioned environment - Do not open Windows.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')" 
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF
Previous: Johannes Schindelin
Message 3 of 3 in “support block comments in gitconfig”
  1. Timothee CourApr 5, 2016
  2. Johannes SchindelinApr 5, 2016
  3. stefan.naewe@atlas-elektronik.comApr 5, 2016

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.