summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/git.h b/git.h
index 351b92d..9671a18 100644
--- a/git.h
+++ b/git.h
@@ -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);