RE: [PATCH] Allow git-config to append a comment
- From
Ralph Seichter <github@seichter.de>
- Date
- Mar 7, 2024, 15:26 UTC
- Message-ID
- <87h6higj1a.fsf@ra.horus-it.com>
- In-Reply-To
- <098101da7096$cd773d40$6865b7c0$@nexbridge.com>
* rsbecker@nexbridge.com:
> While comments are permitted in .gitconfig files, I am not 100% sure > that all stakeholders, particularly those who parse .gitconfig files > in their own scripts outside of git - sure, it is their own > responsibility, but this might be unexpected.
Comments are nothing new, and humans have added far crazier comments to their Git config in the past. The patch ensures that a '#' precedes the comments added using git-config, which is not guaranteed to happen when Joe Random User manually edits config files.
I think that anybody incapable of reliably dealing with comments in config files would already have fallen flat on his/her nose, regardless of how those comments were made.
> I worry that this might unintentionally introduce incompatibilities > into repository configurations.
Do you have an example?
-Ralph