Remix.run Logo
uasi 9 hours ago

Git can display diff between binary files using custom diff drivers:

> Put the following line in your .gitattributes file: *.docx diff=word

> This tells Git that any file that matches this pattern (.docx) should use the “word” filter when you try to view a diff that contains changes. What is the “word” filter? You have to set it up [in .gitconfig].

https://git-scm.com/book/en/v2/Customizing-Git-Git-Attribute...

theknarf 7 hours ago | parent [-]

Would be interesting to see some tooling built around being a custom diff driver for a bunch of different standard formats!

theknarf 7 hours ago | parent [-]

I found this in my git starts: https://github.com/xltrail/git-xl?tab=readme-ov-file

And then there is also Pandoc that I guess could be helpful in this regard.