In Writer and Calc, if a document has been edited without change tracking enabled, but I have both the old and the new version, I can compare the document as follows:
- Open the newest version.
- From the menu, choose Edit > Track Changes > Compare Document… and select the previous version.
- To compare more than two versions, repeat the previous step for each old version, going from newest to oldest.
This will give me a document with all changes over the versions highlighted.
Now suppose I have a document tracked in a git repository: every time someone makes changes to the document, they commit them. I am aware one could save the document in FOD* format, resulting in a flat-file XML document which can be viewed with the usual diff tools, but that does not work well with all types of content (think spreadsheets or text documents with tables or images).
I could extract both versions from git and use Compare Document as above, which would give me a version-tracked document, but that requires a lot of manual steps.
Is there a convenient way to compare two different versions of a document tracked in a git repository, with a Compare Document-like UX?