-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
git diff #1754
Comments
The case is: |
No, it will never be implemented because it requires a Diff library and it's out of scope. You can use Diff library of your choice (like jsDiff) and implement git diff yourself. Check my project where I've added git diff without any issues using existing API, even before version 1.0 |
Thanks for your reply. Could you suggest a library for "git apply" implementation on js? |
Found, that jsdiff has Api for applying patches too. But seems that jsDiff works only with text. May be you know solutions for binary data? |
I don't think that you can diff binary data in canonical git |
"--binary" key enables binary patches generation |
You will need to write your own library in JavaScript to create binary patches. But the git source code is Open Source so you can look at how it was implemented and translate that into JavaScript. |
Is there a chance that "git diff" will be implemented?
The text was updated successfully, but these errors were encountered: