From: bors Date: Wed, 25 Oct 2017 06:42:27 +0000 (+0000) Subject: Auto merge of #4649 - jongiddy:gitignore-newline, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~5^2~32 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5b0865ed5dab9ccb3da7eb0614788fc4ffd43a71;p=cargo.git Auto merge of #4649 - jongiddy:gitignore-newline, r=alexcrichton Add a newline before appended VCS ignore lines The `cargo init` command appends to `.gitignore` or `.hgignore` without checking if the last line of the existing file ends with a newline. This change will insert a newline before the appended lines. If the last line has no newline, this will ensure the lines are kept separated. If the newline is present, this will insert a blank line. Both Git and Mercurial ignore blank lines in these files. --- 5b0865ed5dab9ccb3da7eb0614788fc4ffd43a71