git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Previous: Doug IretonNext: Jeff Epler
Message 2 of 3 in “How can I get full filenames from Git difftool (for Microsoft Word “Compare Documents” feature)?”
  1. Doug IretonDec 14, 2009
  2. Matthieu MoyDec 14, 2009
  3. Jeff EplerDec 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.