We should be able to generate a diff file when a file is committed that is already present in the repository. We could then save the diff file next to the source file in the book's source, allowing the author to include the generated diff instead of the complete file (maybe even using an Asciidoctor extension that looks for the diff and automatically includes it instead of the file itself).