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.
Repository::diff_resource_cache_for_tree_diff()
1 parent cdaba84 commit 6c6f946Copy full SHA for 6c6f946
gix/src/repository/diff.rs
@@ -49,4 +49,14 @@ impl Repository {
49
worktree_roots,
50
)?)
51
}
52
+
53
+ /// Return a resource cache suitable for diffing blobs from trees directly, where no worktree checkout exists.
54
+ ///
55
+ /// For more control, see [`diff_resource_cache()`](Self::diff_resource_cache).
56
+ pub fn diff_resource_cache_for_tree_diff(&self) -> Result<gix_diff::blob::Platform, resource_cache::Error> {
57
+ self.diff_resource_cache(
58
+ gix_diff::blob::pipeline::Mode::ToGit,
59
+ gix_diff::blob::pipeline::WorktreeRoots::default(),
60
+ )
61
+ }
62
0 commit comments