config_file.c
44.6 KB
-
config: buffer comments to match git's variable-adding · cd677b8f
When there is a comment at the end of a section, git keeps it there, while we write the new variable right at the end. Keep comments buffered and dump them when we're going to output a variable or section, or reach EOF. This puts us in line with the config files which git produces.
Carlos Martín Nieto committed