gitout

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

log.h (619B)


      1 #ifndef GITOUT_WRITER_HTML_LOG_H_
      2 #define GITOUT_WRITER_HTML_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 HtmlLog HtmlLog;
     11 
     12 HtmlLog* html_log_create(const GitRepo* repo);
     13 void html_log_free(HtmlLog* log);
     14 void html_log_set_cachefile(HtmlLog* log, const char* cachefile);
     15 void html_log_set_commit_limit(HtmlLog* log, size_t count);
     16 bool html_log_can_add_commits(const HtmlLog* log);
     17 void html_log_begin(HtmlLog* log);
     18 void html_log_add_commit(HtmlLog* log, const GitCommit* commit);
     19 void html_log_end(HtmlLog* log);
     20 
     21 #endif  // GITOUT_WRITER_HTML_LOG_H_