Xgit v0.7.1 Xgit.DirCache.Entry View Source
A single file (or stage of a file) in a directory cache.
An entry represents exactly one stage of a file. If a file path is unmerged then multiple instances may appear for the same path name.
Link to this section Summary
Types
Merge status (stage).
Merge status (stage) for matching a remove request. (Includes :all
to match any stage.)
A single file (or stage of a file) in a directory cache.
Functions
Compare two entries according to git dir cache entry sort ordering rules.
Return true
if this entry struct describes a valid dir cache entry.
Link to this section Types
Merge status (stage).
Merge status (stage) for matching a remove request. (Includes :all
to match any stage.)
t()
View Sourcet() :: %Xgit.DirCache.Entry{ assume_valid?: boolean(), ctime: integer(), ctime_ns: non_neg_integer(), dev: integer(), extended?: boolean(), gid: integer(), ino: integer(), intent_to_add?: boolean(), mode: Xgit.FileMode.t(), mtime: integer(), mtime_ns: non_neg_integer(), name: Xgit.FilePath.t(), object_id: Xgit.ObjectId.t(), size: non_neg_integer(), skip_worktree?: boolean(), stage: stage(), uid: integer() }
A single file (or stage of a file) in a directory cache.
An entry represents exactly one stage of a file. If a file path is unmerged then multiple instances may appear for the same path name.
Consult the documentation for git index file format for a more detailed description of each item.
Struct Members
name
: (FilePath.t
) entry path name, relative to top-level directory (without leading slash)stage
: (0..3
) merge statusobject_id
: (ObjectId.t
) SHA-1 for the represented objectmode
: (FileMode.t
)size
: (integer) on-disk size, possibly truncated to 32 bitsctime
: (integer) the last time the file's metadata changedctime_ns
: (integer) nanosecond fraction ofctime
(if available)mtime
: (integer) the last time a file's contents changedmtime_ns
: (integer) nanosecond fractino ofmtime
(if available)dev
: (integer)ino
: (integer)uid
: (integer)gid
: (integer)assume_valid?
: (boolean)extended?
: (boolean)skip_worktree?
: (boolean)intent_to_add?
: (boolean)
Link to this section Functions
Compare two entries according to git dir cache entry sort ordering rules.
For this purpose, only the following fields are considered (in this priority order):
:name
:stage
Return Value
:lt
ifentry1
sorts beforeentry2
.:eq
if they are the same.:gt
ifentry1
sorts afterentry2
.
Return true
if this entry struct describes a valid dir cache entry.