|
OXY API 1.0
OXY API Library Documentation
|
In-memory representation of a commit. More...
#include <type.hpp>
Public Types | |
| using | oids = std::vector<oid_t> |
Public Member Functions | |
| constexpr | commit_t (const oid_t &index, const signature_t &author, const oid_t &parent, const std::optional< contents_t > &message={}) |
| constexpr | commit_t (const oid_t &index, const signature_t &author, const oids &parents, const std::optional< contents_t > &message={}) |
| constexpr | commit_t (const oid_t &index, const signature_t &author, const std::optional< contents_t > &message={}, const oids &parents={}) |
| constexpr auto & | author () const |
| auto | empty () const noexcept |
| constexpr auto & | index () const |
| constexpr auto & | message () const |
| bool | operator< (const commit_t &rhs) const |
| bool | operator== (const commit_t &rhs) const |
| constexpr auto & | parents () const |
In-memory representation of a commit.
A commit is a snapshot of the repository at a specific point in time, which includes information about the author, message, and parent commits. It is identified by a unique oid and can be used to track the history of changes in the OXY system.