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

How can I get full filenames from Git difftool (for Microsoft Word “Compare Documents” feature)?

From
DIDoug Ireton <dougireton@gmail.com>
Date
Dec 14, 2009, 06:25 UTC
Message-ID
<b507cb050912132225j1bdc39c2v42a3bf6bddf1cb1a@mail.gmail.com>
In-Reply-To
<b507cb050912132222x7e1daa9cw73b13f3db0ee22c6@mail.gmail.com>

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.

I have written an Applescript which takes two filenames in this format: /Users/foo/Documents/my_novel.docx and opens Word to do the file comparison. However, Git Difftool seems to only pass the bare filenames (e.g. my_novel.docx) as parameters.

Is there anyway to get the full filenames from Git Difftool?
Thanks,
Doug Ireton
Next: Matthieu Moy
Message 1 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.