A small script to make it easier to reflow the formatting of an entire PR.
Usage:
user$ git rebase-formatting -c 'sbt-client scalafmt' upstream/master mybranch -- src/
This will:
sbt-client scalafmt
on every commit
At the end of this process, you'll end up with either the same number of commits as before, but with each one formatted, or fewer commits than you started with because the formatting-only changes will have dropped out.