gitout

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

reference.h (447B)


      1 #ifndef GITOUT_GIT_REFERENCE_H_
      2 #define GITOUT_GIT_REFERENCE_H_
      3 
      4 #include "git/commit.h"
      5 
      6 typedef enum {
      7   kReftypeBranch,
      8   kReftypeTag,
      9 } RefType;
     10 
     11 /* reference and associated data for sorting */
     12 typedef struct GitReference GitReference;
     13 
     14 RefType gitreference_type(const GitReference* ref);
     15 const char* gitreference_shorthand(const GitReference* ref);
     16 GitCommit* gitreference_commit(const GitReference* ref);
     17 
     18 #endif  // GITOUT_GIT_REFERENCE_H_