summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-01-03 14:40:25 -0800
committerRussell Belfer <rb@github.com>2014-01-03 14:40:25 -0800
commitac9f92316b4fcace1c591a33d20fa4514f3ec2c6 (patch)
treea0d0739e314182f8a1846077951e39a73e860bda /include/git2
parent5f5e44652eba5bffe57034a0ad839017bff4de44 (diff)
parent10311979492a4b91b24ebab178588e9af801bc42 (diff)
downloadlibgit2-ac9f92316b4fcace1c591a33d20fa4514f3ec2c6.tar.gz
Merge pull request #2022 from KTXSoftware/development
submodule branch option + little VS2013 fix
Diffstat (limited to 'include/git2')
-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 4b4ba6eef..907e5a15f 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