After python/cpython#30745 we can do some neat git diff tricks: $ git switch <somebranch-with-autogenerated-changes> $ git diff main ':(attr:!generated)' $ git config diff.generated.binary true $ git diff main It would be nice to document these in the devguide.