gout

A static git page generator
git clone https://git.bracken.jp/gout.git
Log | Files | Refs | README | LICENSE

log.h (696B)


      1 #ifndef GOUT_WRITER_GOPHER_LOG_H_
      2 #define GOUT_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 #include "utils.h"
     10 
     11 typedef struct GopherLog GopherLog;
     12 
     13 GopherLog* gopher_log_create(const GitRepo* repo, const FileSystem* fs);
     14 void gopher_log_free(GopherLog* log);
     15 void gopher_log_set_cachefile(GopherLog* log, const char* cachefile);
     16 void gopher_log_set_commit_limit(GopherLog* log, size_t count);
     17 bool gopher_log_can_add_commits(const GopherLog* log);
     18 void gopher_log_begin(GopherLog* log);
     19 void gopher_log_add_commit(GopherLog* log, const GitCommit* commit);
     20 void gopher_log_end(GopherLog* log);
     21 
     22 #endif  // GOUT_WRITER_GOPHER_LOG_H_