rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.83k stars 535 forks source link

Add explicit test for newline-preservation #486

Closed rtyley closed 1 year ago

rtyley commented 1 year ago

Issue https://github.com/rtyley/bfg-repo-cleaner/issues/485 reported that the BFG wasn't preserving CR/LF newlines when using --replace-text (even modifying newlines on unaffected files).

This commit adds a couple of explicit tests, verifying that the BFG does indeed preserve newlines.