-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
various improvements #1520
various improvements #1520
Conversation
0f4f75b
to
4eed4c2
Compare
@Jake-Shadle Would you be interested in adding |
Why would it not be straightforward? |
Your optimism is encouraging though. |
With it it's easier to obtain reasonable object cache sizes as optimized for tree-diffs.
d74833b
to
a6da915
Compare
This also renames `TargetRef::Peeled` to `TargetRef::Object` to make clear that it's not necessarily the peeled object that is contained. Previously these terms were confusing due to the incorrect usage of the word `peeled`.
The missing link that makes it possible to follow to the first object and then peel the object according to any preferred algorithm.
Make it easy to follow a ref and peel it to a given object type. Additional `peel_to_<kind>()` shortcuts are also provided, with the same name as in `git2`.
It's an equivalent to `git2::Reference::resolve()`.`
This works by providing `Change::detach()` and `ChangeDetached::attach()`.
…diff-stats. This function is inspired by `git2` which also makes it very simple to obtain.
It allows to keep a free-list of buffers around after clearing, to help prevent re-allocating and growing bufers over and over.
Various API changes to make diffing between trees and stats-retrieval less cumbersome.
Additionally, add more methods to make API more similar to
git2
where it's clearly for convenience.Related to gitbutlerapp/gitbutler#4670 .
Tasks