diff options
-rw-r--r-- | git.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -7,6 +7,7 @@ typedef struct git_repo git_repo; typedef struct pull_request pull_request; +typedef struct index index; typedef struct file file; typedef struct comment comment; typedef struct git_branch git_branch; @@ -48,6 +49,15 @@ struct pull_request { git_branch *merge_branch; /* Branch to merge pull request with. */ }; +struct index { + uint8_t type; /* Index type. (0 = Named index, 1 = Numbered index) */ + union { + char *name; /* Named index. */ + uint64_t num; /* Numbered index. */ + }; + index *next; /* Next index. */ +}; + extern void cleanup_git(git_repository **repos); extern git_repository **init_git(config *cfg); extern int add_comment(comment *comment, const char *pr_root); |