You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gix-dir/src/lib.rs
+7-5
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,14 @@ pub struct EntryRef<'a> {
29
29
/// Note that many entries with status `Pruned` will not show up as their kind hasn't yet been determined when they were
30
30
/// pruned very early on.
31
31
pubstatus: entry::Status,
32
-
/// Further specify the what the entry is on disk, similar to a file mode.
33
-
/// This is `None` if the entry was pruned by a pathspec that could not match, as we then won't invest the time to obtain
34
-
/// the kind of the entry on disk.
32
+
/// Additional properties of the entry.
33
+
pubproperty:Option<entry::Property>,
34
+
/// Further specify what the entry is on disk, similar to a file mode.
35
+
/// This is `None` if we decided it's not worth it to exit early and avoid trying to obtain this information.
35
36
pubdisk_kind:Option<entry::Kind>,
36
37
/// The kind of entry according to the index, if tracked. *Usually* the same as `disk_kind`.
37
38
pubindex_kind:Option<entry::Kind>,
38
39
/// Determines how the pathspec matched.
39
-
/// Can also be `None` if no pathspec matched, or if the status check stopped prior to checking for pathspec matches which is the case for [`entry::Status::DotGit`].
40
40
/// Note that it can also be `Some(PathspecMatch::Excluded)` if a negative pathspec matched.
41
41
pubpathspec_match:Option<entry::PathspecMatch>,
42
42
}
@@ -48,7 +48,9 @@ pub struct Entry {
48
48
pubrela_path:BString,
49
49
/// The status of entry, most closely related to what we know from `git status`, but not the same.
50
50
pubstatus: entry::Status,
51
-
/// Further specify the what the entry is on disk, similar to a file mode.
51
+
/// Additional flags that further clarify properties of the entry.
52
+
pubproperty:Option<entry::Property>,
53
+
/// Further specify what the entry is on disk, similar to a file mode.
52
54
pubdisk_kind:Option<entry::Kind>,
53
55
/// The kind of entry according to the index, if tracked. *Usually* the same as `disk_kind`.
0 commit comments