Xgit v0.2.2 Xgit.Core.Tree View Source

Represents a git tree object in memory.

Link to this section Summary

Types

t()

This struct describes a single tree object so it can be manipulated in memory.

Functions

Renders this tree structure into a corresponding Xgit.Core.Object.

Return true if the value is a tree struct that is valid.

Link to this section Types

Link to this type

t()

View Source
t() :: %Xgit.Core.Tree{entries: [Xgit.Core.Tree.Entry.t()]}

This struct describes a single tree object so it can be manipulated in memory.

Struct Members

  • :entries: list of Tree.Entry structs, which must be sorted by name

Link to this section Functions

Link to this function

to_object(tree)

View Source
to_object(tree :: t()) :: Xgit.Core.Object.t()

Renders this tree structure into a corresponding Xgit.Core.Object.

Link to this function

valid?(tree)

View Source
valid?(tree :: any()) :: boolean()

Return true if the value is a tree struct that is valid.

All of the following must be true for this to occur: