log.h (661B)
1 #ifndef GITOUT_WRITER_GOPHER_LOG_H_ 2 #define GITOUT_WRITER_GOPHER_LOG_H_ 3 4 #include <stdbool.h> 5 #include <stdio.h> 6 7 #include "git/commit.h" 8 #include "git/repo.h" 9 10 typedef struct GopherLog GopherLog; 11 12 GopherLog* gopher_log_create(const GitRepo* repo); 13 void gopher_log_free(GopherLog* log); 14 void gopher_log_set_cachefile(GopherLog* log, const char* cachefile); 15 void gopher_log_set_commit_limit(GopherLog* log, size_t count); 16 bool gopher_log_can_add_commits(const GopherLog* log); 17 void gopher_log_begin(GopherLog* log); 18 void gopher_log_add_commit(GopherLog* log, const GitCommit* commit); 19 void gopher_log_end(GopherLog* log); 20 21 #endif // GITOUT_WRITER_GOPHER_LOG_H_