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

Re: support block comments in gitconfig

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 5, 2016, 11:32 UTC
Message-ID
<alpine.DEB.2.20.1604051327480.3371@virtualbox>
In-Reply-To
<CANri+ExqdM-TTibWK07B2VFns6fQ09fmbqbCKC1VWET1tgRFNA@mail.gmail.com>
Hi Timothee,
On Mon, 4 Apr 2016, Timothee Cour wrote:
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
You could have such block comments. If you implemented that feature.

Having said that, this syntax is distinctly *not* the INI syntax we tried to imitate. Plus, there are Git implementations *other* than core Git in the meantime, and they would need to be taught about this backwards-incompatible syntax, too.

And then we still could not turn on that feature by default because there are setups out there where different users use different versions of Git.

If you are prepared to push this feature forward, you can make it happen. In that case, you will need to spend a bit of effort and definitely exercise patience because you would likely get this feature accepted only into 2.9.0 (or 2.10.0 or 3.0.0...), i.e. a major version bump.

Ciao, Johannes

Previous: Timothee CourNext: stefan.naewe@atlas-elektronik.com
Message 2 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.