* support block comments in gitconfig
@ 2016-04-05 2:19 Timothee Cour
2016-04-05 11:32 ` Johannes Schindelin
2016-04-05 12:53 ` stefan.naewe
0 siblings, 2 replies; 3+ messages in thread
From: Timothee Cour @ 2016-04-05 2:19 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: support block comments in gitconfig
2016-04-05 2:19 support block comments in gitconfig Timothee Cour
@ 2016-04-05 11:32 ` Johannes Schindelin
2016-04-05 12:53 ` stefan.naewe
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2016-04-05 11:32 UTC (permalink / raw)
To: timothee.cour2; +Cc: git
Hi Timothee,
On Mon, 4 Apr 2016, Timothee Cour wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: support block comments in gitconfig
2016-04-05 2:19 support block comments in gitconfig Timothee Cour
2016-04-05 11:32 ` Johannes Schindelin
@ 2016-04-05 12:53 ` stefan.naewe
1 sibling, 0 replies; 3+ messages in thread
From: stefan.naewe @ 2016-04-05 12:53 UTC (permalink / raw)
To: timothee.cour2, git
Am 05.04.2016 um 04:19 schrieb Timothee Cour:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-05 12:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 2:19 support block comments in gitconfig Timothee Cour
2016-04-05 11:32 ` Johannes Schindelin
2016-04-05 12:53 ` stefan.naewe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).