-
-
Notifications
You must be signed in to change notification settings - Fork 660
Use gitoxide in get_commits_info and get_commit_info
#2643
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
base: master
Are you sure you want to change the base?
Conversation
d852816 to
d8eb1f3
Compare
|
@cruessler excited to see more gitoxide in the codebase. any chance to get the CI green? |
I’m having a look! |
|
So far, I have not been able to reproduce the test failures reliably on my machine. My current best guess is that they are somehow timing-related, but I don’t yet know why that might be the case as the code in questions seems to be sync. I think it is this call that triggers the error in rare circumstances, but that’s all I got: gitui/asyncgit/src/sync/blame.rs Line 97 in d8eb1f3
|
|
I’m currently working on adding rename tracking to |
|
@cruessler whatever works best for you |
|
@extrawurst Since rename tracking for blame has landed in |
|
Sounds good to me |
d8eb1f3 to
b36cdf0
Compare
b36cdf0 to
6a024b9
Compare
From<gix::ObjectId>forCommitIdgitoxideinget_commits_infoandget_commit_infoThis PR changes
get_commits_infoandget_commit_infoto usegitoxideunder the hood. It does not explicitly change any behaviour, although there possibly are subtle differences that I’m not aware of.This implementation doesn’t log an error when either
authororcommittercannot be resolved usingmailmapas the underlying implementation returnsOption<Signature>instead ofResult<Signature>. If you want, I can change that, though.I decided to duplicate the logic of
get_messageintogix_get_message, using a prefix for the time both implementations are required.I did not attempt to re-organize any of the code. My plan is to convert more functions to
gitoxidebefore making any changes in that direction.I followed the checklist:
make checkwithout errors