FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.43k stars 636 forks source link

Xltrail for Excel VBA and Ungit #1211

Open Nivvinabon opened 5 years ago

Nivvinabon commented 5 years ago

I work a lot with Excel VBA documents for generating simple calculators and recently discovered a tool for handling Excel documents in GIT in a way that it will actually show the diff of the VBA for an excel document. It's called xltrail ( https://github.com/xlwings/git-xltrail )

I can get this working greatly for GIT bash, but have been having trouble getting it to work with Ungit. Could you provide insight on how I can get this to work?

Looks like there's a good explanation on how to setup a mergetool plugin but not so much for something like this.

Below is a snapshot of what a diff would look like in the GIT bash:

Capture

mitchcapper commented 4 years ago

As ungit uses native git commands I am surprised it doesn't happen out of the box. I would enable git command logging and set verbosity to info on the log and see how the ungit diff command differs from that one.

I will likely look at this next time I go to commit an excel workbook up as I only just started using XLtrail (new open source version). It may be a bit though before I do more macro work.