ForNeVeR / ExtDiff

Compare documents using MS Word from the command line.
MIT License
123 stars 18 forks source link

Git integration #5

Closed jonmseaman closed 6 years ago

jonmseaman commented 6 years ago

Have you tried integrating this with git as a diff tool?

I'm considering trying it out, as I would like to do version control with word files. I'm looking at how to do it on Stack Overflow It would be very useful for me.

jonmseaman commented 6 years ago

I'm considering forking your repo to try it, just thought I would ask if you had first.

ForNeVeR commented 6 years ago

Hello. Yes, I'm using this as a diff tool for *.docx files. Using the SmartGit client, I've set up the following diff command:

command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
parameters: -File X:\Path\To\ExtDiff\Diff-Word.ps1 "${leftFile}" "${rightFile}"

I have no experience in setting up the git diff tools through .gitconfig, but I'm sure that's possible. If you wish to investigate and add a small setup instruction to the Readme file (or small code changes in case they're mandatory to support git), I'd gladly accept such contribution.

jonmseaman commented 6 years ago

Thanks I'll look into it this weekend!

ForNeVeR commented 6 years ago

Done with #6. Thanks, @jonmseaman!