Xgit v0.7.2 Xgit.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
Parses a byte list and converts it to an object-type atom.
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
One of the four known git object types, expressed as an atom.
Link to this section Functions
Parses a byte list and converts it to an object-type atom.
Returns :error
if the byte list doesn't match any of the known-valid object types.
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.