Mini Git
A reduced version of Git
Loading...
Searching...
No Matches
CommitObject Struct Reference

#include <commit.hpp>

Collaboration diagram for CommitObject:
[legend]

Public Member Functions

 CommitObject (const std::string &tree_sha, const std::string &message, const std::string &parent)
 
std::string write () const
 

Public Attributes

AuthorInfo author
 
std::chrono::system_clock::time_point timestamp
 
std::string tree_sha
 
std::string message
 
std::string parent
 

Constructor & Destructor Documentation

◆ CommitObject()

CommitObject::CommitObject ( const std::string & tree_sha,
const std::string & message,
const std::string & parent )

Member Function Documentation

◆ write()

std::string CommitObject::write ( ) const

Member Data Documentation

◆ author

AuthorInfo CommitObject::author

◆ message

std::string CommitObject::message

◆ parent

std::string CommitObject::parent

◆ timestamp

std::chrono::system_clock::time_point CommitObject::timestamp

◆ tree_sha

std::string CommitObject::tree_sha

The documentation for this struct was generated from the following files: