-
Notifications
You must be signed in to change notification settings - Fork 49
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
False positive binary file #61
Comments
Hi jebaum, thanks for your enthusiasm about vimagit! I already encountered this false positive, on a vim config file :) As vim does not embed function do detect binary file, I must use This is indubitably a bug, but for now I don't see how to resolve it. |
I didn't realize |
I though about using git for this job. I was just worrying about different languages, but it should be possible to force language (it should also work for OSX and windows). Actually, use git could also fix #60 ! I'll take a look for it soon. If you want to contribute, help yourself :) |
Hi @jebaum , could you please try the dev/git_diff branch and confirm that it fixes your problem? |
First of all, awesome plugin! It's already making my life way more pleasant.
When I made a small change to my zshrc (viewable here: https://gist.github.com/anonymous/59dde6c409a776f8d18e), vimagit detected it as a binary file and didn't show a diff. This is due to the characters in quotes on lines 144 and 151. These characters aren't viewable in a web browser as far as I know, but you can see them if you download the raw file from the gist and open it in vim.
Removing those characters from the file causes the diff to show up in vimagit.
The text was updated successfully, but these errors were encountered: