Mini Git
A reduced version of Git
Loading...
Searching...
No Matches
commit.cpp File Reference
#include "commit.hpp"
#include <filesystem>
#include <format>
#include "sha.hpp"
#include <zstr.hpp>
Include dependency graph for commit.cpp:

Functions

std::string get_head ()
 
void write_head (const std::string &commit_sha)
 
int commit (int argc, char *argv[])
 

Function Documentation

◆ commit()

int commit ( int argc,
char * argv[] )

◆ get_head()

std::string get_head ( )

◆ write_head()

void write_head ( const std::string & commit_sha)