diff options
author | Russell Belfer <rb@github.com> | 2014-01-03 14:40:25 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-01-03 14:40:25 -0800 |
commit | ac9f92316b4fcace1c591a33d20fa4514f3ec2c6 (patch) | |
tree | a0d0739e314182f8a1846077951e39a73e860bda /include/git2 | |
parent | 5f5e44652eba5bffe57034a0ad839017bff4de44 (diff) | |
parent | 10311979492a4b91b24ebab178588e9af801bc42 (diff) | |
download | libgit2-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.h | 8 |
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 |