diff options
Diffstat (limited to 'include/git2')
| -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 |
