summaryrefslogtreecommitdiff
path: root/git.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-27 09:04:36 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-07-27 09:04:36 -0300
commitbe48dd9af6d9fb1b7ab5c90fcb0c8b1cb3a20738 (patch)
treeb8c2e9e5504059c726d85680ec570cfa51c5263b /git.h
parent93c6d10ea0048a32009395a2154978ce3f538da7 (diff)
git: Update definition of `create_pull_request_dir()` in `git.h`
Forgot to do that when first implementing the index related stuff.
Diffstat (limited to 'git.h')
-rw-r--r--git.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/git.h b/git.h
index dd770e2..ef1b83a 100644
--- a/git.h
+++ b/git.h
@@ -4,6 +4,7 @@
#include <git2.h>
#include <stdint.h>
#include <time.h>
+#include "index.h"
typedef struct pull_request pull_request;
typedef struct file file;
@@ -45,6 +46,6 @@ struct pull_request {
extern void cleanup_git(git_repository **repos);
extern git_repository **init_git(config *cfg);
extern int add_comment(comment *comment, const char *pr_root);
-extern int create_pull_request_dir(pull_request *pr, int id, const char *root);
+extern int create_pull_request_dir(pull_request *pr, index *idx, const char *root);
#endif