summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-09-18 12:28:05 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-09-18 12:28:05 +0200
commitcd677b8fe0ff6d843d4733b1a08a5bcff89e4f46 (patch)
tree7988fde1f5aab761ac38d764b1ea0b5e25ce8a26 /src/diff.c
parent08313c4b12ce80990018fa6fc9a7a93d0fb09ae0 (diff)
downloadlibgit2-cd677b8fe0ff6d843d4733b1a08a5bcff89e4f46.tar.gz
config: buffer comments to match git's variable-addingcmn/config-comment
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.
Diffstat (limited to 'src/diff.c')
0 files changed, 0 insertions, 0 deletions