Assuming the answer to should I store generated code in source control is "no", what is the best way to compare the generated code for changes (expected or unexpected) when the source code is changed?
In this scenario,
- All developers have the tools to perform code generation locally
- The code generation is fast
- The generated files are large
Here is a Bash script that can compare a single generated file between the previous and current revisions: