config --replace-all: avoid extra line breaks
commit46fc89ce74b46e88764c796b3ab20d5ab90a5e96
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 3 Apr 2018 16:28:14 +0000 (3 18:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Apr 2018 23:30:03 +0000 (6 08:30 +0900)
tree9482654c6bde0e91f72fe6f42b7ceff5e8111783
parente9313952bf85bcc8b602f582b2e71660d670f97b
config --replace-all: avoid extra line breaks

When replacing multiple config entries at once, we did not re-set the
flag that indicates whether we need to insert a new-line before the new
entry. As a consequence, an extra new-line was inserted under certain
circumstances.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
t/t1300-config.sh