commit.h (628B)
1 #ifndef GITOUT_WRITER_GOPHER_COMMIT_H_ 2 #define GITOUT_WRITER_GOPHER_COMMIT_H_ 3 4 #include "git/commit.h" 5 #include "git/repo.h" 6 7 typedef struct GopherCommit GopherCommit; 8 9 GopherCommit* gopher_commit_create(const GitRepo* repo, 10 const char* oid, 11 const char* title); 12 void gopher_commit_free(GopherCommit* commit); 13 void gopher_commit_begin(GopherCommit* commit); 14 void gopher_commit_add_commit(GopherCommit* commit, 15 const GitCommit* git_commit); 16 void gopher_commit_end(GopherCommit* commit); 17 18 #endif // GITOUT_WRITER_GOPHER_COMMIT_H_