Xgit v0.8.0 Xgit.Tree.Entry View Source
A single file in a tree
structure.
Link to this section Summary
Functions
Compare two entries according to git file name sorting rules.
Return true
if this entry struct describes a valid tree entry.
Link to this section Types
Link to this type
t()
View Sourcet() :: %Xgit.Tree.Entry{ mode: Xgit.FileMode.t(), name: Xgit.FilePath.t(), object_id: Xgit.ObjectId.t() }
A single file in a tree structure.
Struct Members
name
: (FilePath.t
) entry path name, relative to top-level directory (without leading slash)object_id
: (ObjectId.t
) SHA-1 for the represented objectmode
: (FileMode.t
)
Link to this section Functions
Compare two entries according to git file name sorting rules.
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 tree entry.