Uh oh!
There was an error while loading. Please reload this page.
Use gitoxide in get_commits_info and get_commit_info - #2643
Conversation
d852816 to
d8eb1f3Compareextrawurst
commented
May 20, 2025
@cruessler excited to see more gitoxide in the codebase. any chance to get the CI green? |
cruessler
commented
May 20, 2025
I’m having a look! |
cruessler
commented
May 22, 2025
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 |
cruessler
commented
Jun 1, 2025
I’m currently working on adding rename tracking to |
extrawurst
commented
Jun 1, 2025
@cruessler whatever works best for you |
cruessler
commented
Jun 10, 2025
@extrawurst Since rename tracking for blame has landed in |
extrawurst
commented
Jun 10, 2025
Sounds good to me |
d8eb1f3 to
b36cdf0Compareb36cdf0 to
6a024b9Compareextrawurst
commented
Nov 28, 2025
@cruessler should we mark this |
cruessler
commented
Nov 29, 2025
Makes total sense, I’ve converted it to draft! (I hope I’m not spamming too much with all these experimental PRs that explore using |
extrawurst
commented
Mar 29, 2026
waiting for #2591 |
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