We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gix tree diff
1 parent db5c9cf commit 32d6bfbCopy full SHA for 32d6bfb
gitoxide-core/src/repository/diff.rs
@@ -1,5 +1,6 @@
1
use gix::bstr::{BString, ByteSlice};
2
use gix::objs::tree::EntryMode;
3
+use gix::odb::store::RefreshMode;
4
use gix::prelude::ObjectIdExt;
5
6
pub fn tree(
@@ -9,6 +10,7 @@ pub fn tree(
9
10
new_treeish: BString,
11
) -> anyhow::Result<()> {
12
repo.object_cache_size_if_unset(repo.compute_object_cache_size_for_tree_diffs(&**repo.index_or_empty()?));
13
+ repo.objects.refresh = RefreshMode::Never;
14
15
let old_tree_id = repo.rev_parse_single(old_treeish.as_bstr())?;
16
let new_tree_id = repo.rev_parse_single(new_treeish.as_bstr())?;
0 commit comments