diff options
| author | Jan Melcher <info@yogularm.de> | 2014-03-10 18:16:10 +0100 |
|---|---|---|
| committer | Jan Melcher <info@yogularm.de> | 2014-03-10 18:16:10 +0100 |
| commit | 52fba18f4e73a0342b28428cc7d783423b6d19c0 (patch) | |
| tree | 69d327bb45465447090619d6adbfec73376e7ee2 /include/git2/submodule.h | |
| parent | 6de018bbf1fef075d28f2a0cce5f16595f0c8d94 (diff) | |
| download | libgit2-52fba18f4e73a0342b28428cc7d783423b6d19c0.tar.gz | |
Add git_submodule_resolve_url()
Diffstat (limited to 'include/git2/submodule.h')
| -rw-r--r-- | include/git2/submodule.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/submodule.h b/include/git2/submodule.h index d72432610..ac0abc0a4 100644 --- a/include/git2/submodule.h +++ b/include/git2/submodule.h @@ -272,6 +272,16 @@ GIT_EXTERN(const char *) git_submodule_path(git_submodule *submodule); GIT_EXTERN(const char *) git_submodule_url(git_submodule *submodule); /** + * Resolve a submodule url relative to the given repository. + * + * @param out buffer to store the absolute submodule url in + * @param repository Pointer to repository object + * @param url Relative url + * @return 0 or an error code + */ +GIT_EXTERN(int) git_submodule_resolve_url(git_buf *out, git_repository *repo, const char *url); + +/** * Get the branch for the submodule. * * @param submodule Pointer to submodule object |
