diff options
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -377,6 +377,16 @@ pull_request *get_pull_request(index_t *idx, const char *root, const char *repo) } } +int get_pr_type(void *ctx, void *data, const keyword *key, keyword_val *val) { + pull_request *pr = (pull_request *)data; + if (key->type == TYPE_INT && pr != NULL) { + val->i = pr->pr_type; + return 1; + } else { + return -1; + } +} + int has_remote_branch(void *ctx, void *data, const keyword *key, keyword_val *val) { pull_request *pr = (pull_request *)data; return (pr->pr_type) ? 0 : -1; |