Radish alpha
r
rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt
Git libraries for Radicle
Radicle
Git
surf: Add a small explainer on binary detection in diffs
Sebastian Martinez committed 2 years ago
commit c4590eca2d478d50e4f244b1728b967665f12eae
parent 80ac22a
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>,