Is there any automated way to verify that all commits in a Git repo are in a compilable state?
I need this to verify I haven't broken anything after rewriting history. Since I'm rewriting history, this excludes a build server - a commit that worked at the time it was committed might be broken after rewriting history.
For example I have a Visual Studio 2015 C# project, and I imagine some script like:
git filter-branch --tree-filter msbuild
I want it to run a build on each commit, and stop with an error message if the build process returns nonzero.