summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-11-08 17:05:13 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2014-11-08 17:05:13 -0500
commit02bc5233041ba0b83fc8db66e02214c99f1e75fe (patch)
tree42c07e3d5a6baa826d327ea5f1fb1a1e692f7a35 /include/git2
parentbc8c4a8aeb7323e6e7431797a2be0d0e0035d9e8 (diff)
parent2c9b9c8bb4ffe083ddea7044cdfd07d6985756d6 (diff)
downloadlibgit2-02bc5233041ba0b83fc8db66e02214c99f1e75fe.tar.gz
Merge pull request #2698 from libgit2/cmn/fetchhead-refactor
Refactor fetchhead
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/branch.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h
index f28410000..888781037 100644
--- a/include/git2/branch.h
+++ b/include/git2/branch.h
@@ -260,6 +260,17 @@ GIT_EXTERN(int) git_branch_remote_name(
git_repository *repo,
const char *canonical_branch_name);
+
+/**
+ * Retrieve the name fo the upstream remote of a local branch
+ *
+ * @param buf the buffer into which to write the name
+ * @param repo the repository in which to look
+ * @param refname the full name of the branch
+ * @return 0 or an error code
+ */
+ GIT_EXTERN(int) git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname);
+
/** @} */
GIT_END_DECL
#endif