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

Posted by Doug on Stack Overflow See other posts from Stack Overflow or by Doug
Published on 2009-12-14T06:10:13Z Indexed on 2010/03/21 22:01 UTC
Read the original article Hit count: 633

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about git

Related posts about difftool