gitout

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

internal.h (982B)


      1 #ifndef GITOUT_GIT_INTERNAL_H_
      2 #define GITOUT_GIT_INTERNAL_H_
      3 
      4 #include <git2.h>
      5 
      6 #include "git/commit.h"
      7 #include "git/delta.h"
      8 #include "git/file.h"
      9 #include "git/reference.h"
     10 
     11 GitCommit* gitcommit_create(const git_oid* oid, git_repository* repo);
     12 void gitcommit_free(GitCommit* commit);
     13 
     14 GitDelta* gitdelta_create(git_patch* patch);
     15 void gitdelta_free(GitDelta* delta);
     16 
     17 GitFile* gitfile_create(FileType type,
     18                         const char* mode,
     19                         const char* display_path,
     20                         const char* repo_path,
     21                         const char* commit_oid,
     22                         ssize_t size_bytes,
     23                         ssize_t size_lines,
     24                         const char* content);
     25 void gitfile_free(GitFile* file);
     26 
     27 GitReference* gitreference_create(git_repository* repo, git_reference* ref);
     28 void gitreference_free(GitReference* ref);
     29 int gitreference_compare(const void* r1, const void* r2);
     30 
     31 #endif  // GITOUT_GIT_INTERNAL_H_