Xgit v0.1.3 Xgit.Core.ObjectType View Source
Describes the known git object types.
There are four distinct object types that can be stored in a git repository. Xgit communicates internally about these object types using the following atoms:
:blob
:tree
:commit
:tag
This module is intended to be use
d. Doing so will create an alias
to the module
so as to make ObjectType.t
available for typespecs and will import
the
is_object_type/1
guard.
Link to this section Summary
Functions
This guard requires the value to be one of the four known git object types.
Return true
if the value is one of the four known git object types.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: :blob | :tree | :commit | :tag
t() :: :blob | :tree | :commit | :tag
One of the four known git object types, expressed as an atom.
Link to this section Functions
Link to this macro
is_object_type(t) View Source (macro)
This guard requires the value to be one of the four known git object types.
Link to this function
valid?(t) View Source
Return true
if the value is one of the four known git object types.