summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-05-21 00:45:16 -0400
committerJunio C Hamano <gitster@pobox.com>2015-05-21 11:03:49 -0700
commitf052154db332e48ea35b1a0d783361a40a361250 (patch)
tree142d8071a45e5c69bb3deae603a1443a3e8717b9 /remote.h
parent9e3751d4437b43e72497178774c74be1ceac28b9 (diff)
downloadgit-f052154db332e48ea35b1a0d783361a40a361250.tar.gz
remote.c: hoist branch.*.remote lookup out of remote_get_1
We'll want to use this logic as a fallback when looking up the pushremote, so let's pull it out into its own function. We don't technically need to make this available outside of remote.c, but doing so will provide a consistent API with pushremote_for_branch, which we will add later. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index 4bb6672735..2a7e7a698b 100644
--- a/remote.h
+++ b/remote.h
@@ -211,6 +211,7 @@ struct branch {
};
struct branch *branch_get(const char *name);
+const char *remote_for_branch(struct branch *branch, int *explicit);
int branch_has_merge_config(struct branch *branch);
int branch_merge_matches(struct branch *, int n, const char *);