Radish alpha
r
Git libraries for Radicle
Radicle
Git (anonymous pull)
Log in to clone via SSH
Merge remote-tracking branch 'sebastinez/add-small-disclaimer-on-diff-commits-fn'
Fintan Halpenny committed 2 years ago
commit 3c8e3cd9d8db8af23f61e847c205dc23f7526648
parent 25b6fcea2f525270ac8d7e1eccb6d00c6be5b847
1 file changed +10 -0
modified radicle-surf/src/repo.rs
@@ -496,6 +496,16 @@ impl Repository {
        }
    }

+
    /// Create a diff with the difference between two tree objects.
+
    ///
+
    /// Defines some options and flags that are passed to git2.
+
    ///
+
    /// Note:
+
    /// libgit2 optimizes around not loading the content when there's no content
+
    /// callbacks configured. Be aware that binaries aren't detected as
+
    /// expected.
+
    ///
+
    /// Reference: <https://github.com/libgit2/libgit2/issues/6637>
    fn diff_commits(
        &self,
        path: Option<&Path>,