summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Lobanov <gaussblurinc@gmail.com>2021-05-12 10:30:12 +0300
committerDmitry Lobanov <gaussblurinc@gmail.com>2021-05-12 10:30:12 +0300
commit7d9599bd22521627b50527d394f1bb7c51252139 (patch)
treef6e7fed820fb0e8ff949a24469f4bbe0b18c37d1 /src
parenta2d953e5ed48112ec132fc0f38f92ba66095c477 (diff)
downloadlibgit2-7d9599bd22521627b50527d394f1bb7c51252139.tar.gz
branch: git branch upstream merge has been exposed.
Diffstat (limited to 'src')
-rw-r--r--src/branch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/branch.c b/src/branch.c
index ff790b980..55b748cb2 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -492,6 +492,14 @@ static int git_branch_upstream_with_format(git_buf *buf, git_repository *repo, c
return error;
}
+int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname) {
+ git_branch_upstream_with_format(buf, repo, refname, "branch.%s.remote");
+}
+
+int git_branch_upstream_merge(git_buf *buf, git_repository *repo, const char *refname) {
+ git_branch_upstream_with_format(buf, repo, refname, "branch.%s.merge");
+}
+
int git_branch_remote_name(git_buf *buf, git_repository *repo, const char *refname)
{
git_strarray remote_list = {0};