Skip to content

Commit 1e19760

Browse files
committed
improve documentation of gix_index::entry::Stat::matches
1 parent 4736b60 commit 1e19760

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gix-index/src/entry/stat.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ impl Stat {
2727
}
2828
}
2929

30-
/// Compares stat information given a set of git setting
30+
/// Compares the stat information of two index entries. Intuitively this is
31+
/// basically equivalent to `self == other`. However there a lot of nobs in
32+
/// git that tweak whether certain stat information is used when checking
33+
/// equality, see [`gix_index::entry::stat::Options`]. This function
34+
/// respects those options while performing the stat comparison (and may
35+
/// therefore ignore some fields)
3136
pub fn matches(
3237
&self,
3338
other: &Self,

0 commit comments

Comments
 (0)