]> git.ipfire.org Git - thirdparty/git.git/blobdiff - remote.h
remote.c: hoist branch.*.remote lookup out of remote_get_1
[thirdparty/git.git] / remote.h
index 02d66ceff5c962995de37f351a09fe91055d6364..2a7e7a698b92afc722247be578a442f0b0f60bda 100644 (file)
--- a/remote.h
+++ b/remote.h
@@ -203,7 +203,6 @@ struct branch {
        const char *refname;
 
        const char *remote_name;
-       struct remote *remote;
 
        const char **merge_name;
        struct refspec **merge;
@@ -212,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 *);