Skip to content

Commit 4736b60

Browse files
committed
clarify Stat::is_racy documentation
1 parent c5f3fc8 commit 4736b60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gix-index/src/entry/stat.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ use filetime::FileTime;
66
use crate::entry::Stat;
77

88
impl Stat {
9-
/// detect whether this stat entry is racy given the timestamp
10-
/// of the index it belongs to
9+
/// Detect whether this stat entry is racy given an index timestamp. An
10+
/// index entry is considered racy if it's mtime is larger or equal to the
11+
/// index timestamp. The index timestamp marks the point in time before
12+
/// which we definitely resolved the racy git problem for all index entries
13+
/// so any index entries that changed afterwards will need to be examined for
14+
/// changes (by actually reading the file from disk) at least once.
1115
pub fn is_racy(
1216
&self,
1317
timestamp: FileTime,

0 commit comments

Comments
 (0)