#ifndef COMMIT_H #define COMMIT_H #include #include "utilities.h" typedef struct { char* name; char* email; char* timestamp; } Author; typedef struct { char* hash; char* tree_hash; Author* authors; size_t authors_count; Author committer; char* message; } Commit; typedef List CommitLog; CommitLog* commit_log_new(); void commit_log_push(CommitLog*, Commit); void commit_log_free(CommitLog*); int read_commit_log(CommitLog*, char*); int write_commit_log(CommitLog*, char*); #endif // COMMIT_H