-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Replace libgit2 with gitoxide #3235
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
Conversation
Thanks for working on this! Honestly, it feels like the diffs are still valid, so adapting the tests is acceptable in my opinion. However you might find that extending the |
You may also find this document about diff-sliders interesting. It also details the tuning that Git has received to produce more 'likable' diffs, some of which Right now, As this comes up all the time, I also feel that pressure is mounting, and more so the more people use |
I think that trying to improve |
The diffing library that gitoxide uses does not have the same optimizations as libgit2 (yet)
Since I have not been able to work much on the |
GitoxideLabs/gitoxide#2011 just got merged and I tested the optimized diff locally and it works :D. I will updated this PR once a new version of |
That is not so good 😬 I took a quick peek and something with the scoring is weird with this diff. For some reason the implementation prefers moving up to line 132 over staying at line 141. I will look into it and also try to come up with a good test suite. |
Thank you, it's much appreciated! |
Already found the issue --> blinxen/gitoxide@d7ab68e
That will be the next step |
Any new updates on this one? :) |
I did not have enough time lately to continue to work on the diff improvements. However, the
If this statement is still valid then I can solve the merge conflicts and we can just merge it. Improvements can be added in a later PR. |
I do worry that many users will complain that the diffs don't match what |
I don't see a benefit in this. I initially started this PR to reduce maintenance work on |
This makes me sad, but I also have no solution for the diff-slider issue and the Git related modifications. |
As discussed in #3151, I have prepared a PR to replace the
libgit2
usage inbat
withgitoxide
. The PR is not finished yet because some tests are failing since the producedgit diff
does not match the exact behavior oflibgit2
.I see here two solutions:
imara-diff
crate to generategit
like diffsWhat do the maintainers think?
CC: @Byron