Guides
Legal: compare two contract drafts
Find every change between two versions of a contract and send a clean report.
You have contract-v1.docx and contract-v2.docx. You want to know what changed, and send that to a colleague or client.
See the changes
fetlar diff contract-v1.docx contract-v2.docx§4.2 Payment terms
- Payment within 30 days of invoice.
+ Payment within 60 days of invoice.Each change sits under the heading it is in. A paragraph that moved is reported as moved, not as deleted and added.
Make a report to send
fetlar diff contract-v1.docx contract-v2.docx --report "contract (comparison).docx"The report is a Word file with the file names, the date, the counts and each change. Old text is struck through and new text is in bold.
Check the headings and tables too
Add --formatting to also see a paragraph that became a heading. Table cells, headers, footers and footnotes are always compared.
fetlar diff contract-v1.docx contract-v2.docx --formattingGood to know
- The comparison covers what a reader sees. A re-saved file with no real edits shows no changes.
- The report is not a Word tracked-changes (redline) file. Changes are shown with strike-through and bold.
- Text is compared exactly as stored. Arabic is never reordered.
- Exit code
0means identical,1means different. You can use it in a script. - Hidden text is not compared unless you add
--hidden.
Related: Comparing files.