Re: How can I get full filenames from Git difftool (for Microsoft Word “Compare Documents” feature)?
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Dec 14, 2009, 07:55 UTC
- Message-ID
- <vpqd42i56ra.fsf@bauges.imag.fr>
- In-Reply-To
- <b507cb050912132225j1bdc39c2v42a3bf6bddf1cb1a@mail.gmail.com>
Doug Ireton <dougireton@gmail.com> writes:
Show 7 quoted lines
> I am using the latest version of Git (1.6.6) on a Mac. My wife wants > to use Git to manage her fiction writing as long as she can still use > Microsoft Word 2008 (Mac). Instead of pushing her into saving > everything as plain text, I would like to use Git Difftool to pass the > files to Word and use Word's Compare Documents feature. She wouldn't > be able to use Git Diff since Word docs are binary files but she could > still use Git Difftool.
If you're interested in diff-ing the _text_ itself, you can use the textconv filter of Git, together with antiword (or catdoc, which does the same thing, but I think antiword works better).
See this:
http://git.or.cz/gitwiki/GitTips#HowtousegittotrackOpenDocument.28OpenOffice.2CKoffice.29files.3F
and adapt by replacing "OpenOffice" with MS Word, and odt2txt with antiword.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/