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.11k stars 549 forks source link

Is it possible to replace text in commit messages? #254

Open carlsonad opened 6 years ago

carlsonad commented 6 years ago

I'm looking to use it to replace references of multiple work item ids in all commit messages. Our company is doing a migration of a project to a new system. All of our work items are being migrated to the new system where they are getting new Ids. I have a list of the ids in the old system mapped to the ids in the new system and would like to update the commit messages to reflect the changes.

Looking at issue #21, it seems like a feature was added to be able to replace text in commit messages. However, I don't see how to call BFG to do that.

Was the feature added? If so, how do I use it?

carlsonad commented 6 years ago

It looks like the work was started in the replace-message-text branch. Is that work to the point where it would be usable with a custom build?

javabrett commented 6 years ago

That branch is super-old and I'd expect a bit of work if you were to rebase it to current master. I'm not familiar with the changes so not sure how close this got to complete.