We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f3fc8 commit 4736b60Copy full SHA for 4736b60
gix-index/src/entry/stat.rs
@@ -6,8 +6,12 @@ use filetime::FileTime;
6
use crate::entry::Stat;
7
8
impl Stat {
9
- /// detect whether this stat entry is racy given the timestamp
10
- /// of the index it belongs to
+ /// Detect whether this stat entry is racy given an index timestamp. An
+ /// 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.
15
pub fn is_racy(
16
&self,
17
timestamp: FileTime,
0 commit comments