mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-30 16:30:49 +08:00
Merge remote-tracking branch 'sebastinez/add-small-disclaimer-on-diff-commits-fn'
* sebastinez/add-small-disclaimer-on-diff-commits-fn: surf: Add a small explainer on binary detection in diffs Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user