This tool writes a unified diff to stdout https://github.com/bazelbuild/bazel-gazelle#fix-and-update I wish I could colorize it like GitHub does in their markdown flavor so added/removed regions are green/red respectively.