BTW, I found out about two maintained fork of gcfg:
The first one apparently has a very very nice capability: being able to edit a config file without deleting the comments a user might have put there. It would be great to cherry pick those commits. See for example git-bug/git-bug#1022 how that can cause problems.
Originally posted by @MichaelMure in #1 (comment)