summaryrefslogtreecommitdiff
path: root/include/git2/submodule.h
diff options
context:
space:
mode:
authorRobert Konrad <robert@ktx-software.com>2014-01-02 03:14:03 +0100
committerRobert Konrad <robert@ktx-software.com>2014-01-02 15:10:32 +0100
commit10311979492a4b91b24ebab178588e9af801bc42 (patch)
tree6d602b9cfbc229ad0310c728cd50471cedd66e5b /include/git2/submodule.h
parent6014b7b59ce3320311d61b929e9567c0503b630b (diff)
downloadlibgit2-10311979492a4b91b24ebab178588e9af801bc42.tar.gz
Read the submodule branch option from Git 1.8.2.
Diffstat (limited to 'include/git2/submodule.h')
-rw-r--r--include/git2/submodule.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/submodule.h b/include/git2/submodule.h
index a1507593c..36bc7f8ed 100644
--- a/include/git2/submodule.h
+++ b/include/git2/submodule.h
@@ -284,6 +284,14 @@ GIT_EXTERN(const char *) git_submodule_path(git_submodule *submodule);
GIT_EXTERN(const char *) git_submodule_url(git_submodule *submodule);
/**
+* Get the branch for the submodule.
+*
+* @param submodule Pointer to submodule object
+* @return Pointer to the submodule branch
+*/
+GIT_EXTERN(const char *) git_submodule_branch(git_submodule *submodule);
+
+/**
* Set the URL for the submodule.
*
* This sets the URL in memory for the submodule. This will be used for