-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with git diff? #46
Comments
OK, I think I figured it out:
It appears that we do need to do this, or it diffs the wrong things. The wrapper also needs to return 0, or the diff stops after the first Excel file, as explained in #30. |
I think I will add an option --git_diff_mode where it will return 0 even if files differ. Will that be sufficient? |
In this mode, it also needs to use the 2nd and 5th non-option arguments for the filepaths, instead of the 1st and 2nd. If we write in the gitconfig: Then using And here we want to diff the two files in /tmp. The other arguments seem to be used to print a message about the git status of the changed file, but that could be worked out later. Also, it would sometimes be useful to return 0 on "Failed to read as excel file". (Say I have one unimportant spreadsheet in my repo history that doesn't work, and I still want git diff to process the rest of them.) Maybe this should be a separate option. |
I copied the
|
Hi, this tool seems very useful and I'd like to try using it with my git-managed spreadsheets.
#30 gives some example config. I have the gitattributes working, but in the gitconfig,
command
doesn't seem to do anything - I still get the "binary files differ" message. (Usingtextconv
works as expected.) I couldn't find anything in the git documentation about this feature. Any ideas what to try? I'm using git 2.13.6 on Fedora.Also:
http://programmaticallyspeaking.com/git-diffing-excel-files.html
https://stackoverflow.com/questions/20069976/setup-git-diff-for-special-file-types
I haven't got this far yet, but the first link claims we need a wrapper script to pass arguments 2 and 5 to ExcelCompare, while the other sources don't do this. Which way is it? Maybe it's because that was an older version of ExcelCompare?
The text was updated successfully, but these errors were encountered: