Display changes using Git on zip

I am using git-gui on Windows Vista (via msysgit) and I am trying to change the display of the diff area (yellow) in office files (for example .xlsx - they are really protected by .xml)

In C: \ Users \ Daniel \

.gitconfig
[diff "zip"]
textconv = unzip -c -a

In the repository: (As a note, I would prefer this in C: \ Users \ Daniel , what should I do? )

.gitattributes
*.xlsx diff=zip

After writing the .xlsx file, changing it and rescanning, I get the following message:
Binary files a/notes/GaussianMountain.xlsx and b/notes/GaussianMountain.xlsx differ

Instead of listing the changes made! What's wrong?

+1
git msysgit
Jan 16 '11 at 10:37
source share
1 answer

Update: it seems from the comments below that the questionnaire needs a later version of git -gui / msysGit. However, there are several other problems that I experienced when trying to reproduce the problem described below.

I think I was able to reproduce this: the problem is that I have the "Use TextConv for Differences and Benefits" checkbox selected in the Git Gui Edit > Options... dialog box. When I turned off this option, it worked fine - counterintuitively, in my opinion, although it is also described on the TextConv page on the Git wiki wiki .

Another problem I ran into was that the converter I tested with (lines) was not in my path, so I had to put the full path in my .gitconfig:

 [diff "stringify"] textconv = c:/cygwin/bin/strings.exe 

However, if this was a problem for you, I don’t think you would even see the message “Binary files A and B differ”, so I suspect this is the first problem.

0
Jan 16 2018-11-16T00:
source share



All Articles