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
11.04k stars 545 forks source link

Behaviour on delete-text with one string being a substring of another #441

Open john-forrest opened 3 years ago

john-forrest commented 3 years ago

I've got a scenario where I have a selection of strings to delete from git history but where some strings to delete are substrings of others. For example:

foo\nbar
bar

This is a question really, as I've yet to see an actual issue, but it is possible that this is working by fluke and I could have stumbled across a combination that works. Is this defined behaviour - for example, will it be greedy and replace the longest string? Does the order matter?