diff options
| author | Vicent Marti <vicent@github.com> | 2014-03-10 18:16:56 +0100 |
|---|---|---|
| committer | Vicent Marti <vicent@github.com> | 2014-03-10 18:16:56 +0100 |
| commit | fc78488b3da2b5f6c3acf8eafda82d47bebf748d (patch) | |
| tree | b8cd3e70a4dbc5038c7253cc454849bd6a187b62 /include/git2/submodule.h | |
| parent | 4a8692f63321e77bc4faa73d1aedd933cea99bd5 (diff) | |
| parent | 52fba18f4e73a0342b28428cc7d783423b6d19c0 (diff) | |
| download | libgit2-fc78488b3da2b5f6c3acf8eafda82d47bebf748d.tar.gz | |
Merge pull request #2175 from Yogu/submodule-resolve-url
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 |
