Rebasing past reformats

TL;DR Did you ever have to deal with a huge list of conflicts on rebase caused by automatic reformatting of an upstream codebase? If you got into a similar situation you might be able to automatically recreate your changes with git filter-branch --tree-filter and a git commit --allow-empty trick. story mode I have local fork of staging branch of nixpkgs git repository to do various tests against…