summaryrefslogtreecommitdiff
path: root/git.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-08-05 13:44:20 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-08-05 13:44:20 -0300
commit689f0738581ee6dec440d7123e5431f4a78adaf9 (patch)
tree2d2db83c7cd1d2b58a8c9f0b1f1befca6f6ff309 /git.h
parent9f58d83f1d7116c824ff074184a6c90556410b5b (diff)
git: Add `create_pull_request_branch()`
This takes in the PR, the index of that PR, and the repo the PR is for, and will create a branch for that PR in the given repo. Currently it only supports working with remote branches, but eventually it'll support patch files too.
Diffstat (limited to 'git.h')
-rw-r--r--git.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.h b/git.h
index 595f7a5..e2c6776 100644
--- a/git.h
+++ b/git.h
@@ -56,6 +56,7 @@ extern git_repo **init_git(config *cfg);
extern pull_request *get_pull_request(index_t *idx, const char *root, const char *repo);
extern int add_comment(comment *comment, const char *pr_root);
extern git_repo *get_repo(git_repo **repos, const char *name);
+extern int create_pull_request_branch(pull_request *pr, index_t *idx, git_repo *repo);
extern int create_pull_request_dir(pull_request *pr, index_t *idx, const char *root, const char *repo);
int parse_remote_branch(void *ctx, void *ret, const keyword *key, keyword_val val);