pub struct Entry {
    pub stat: Stat,
    pub id: ObjectId,
    pub flags: Flags,
    pub mode: Mode,
    /* private fields */
}Expand description
An entry in the index, identifying a non-tree item on disk.
Fields§
§stat: StatThe filesystem stat information for the file on disk.
id: ObjectIdThe object id for this entry’s ODB representation (assuming it’s up-to-date with it).
flags: FlagsAdditional flags for use in algorithms and for efficiently storing stage information.
mode: ModeThe kind of item this entry represents - it’s not all blobs in the index anymore.
Implementations§
source§impl Entry
 
impl Entry
source§impl Entry
 
impl Entry
sourcepub fn cmp(&self, other: &Self, state: &State) -> Ordering
 
pub fn cmp(&self, other: &Self, state: &State) -> Ordering
Compare one entry to another by their path, by comparing only their common path portion byte by byte, then resorting to entry length and stage.
sourcepub fn cmp_filepaths(a: &BStr, b: &BStr) -> Ordering
 
pub fn cmp_filepaths(a: &BStr, b: &BStr) -> Ordering
Compare one entry to another by their path, by comparing only their common path portion byte by byte, then resorting to entry length.