libgit2

git_submodule_resolve_url

Version:

Resolve a submodule url relative to the given repository.

Signature

int git_submodule_resolve_url(git_buf *out, git_repository *repo, const char *url);

Parameters

In
out

buffer to store the absolute submodule url in

In
repo

Pointer to repository object

const char *
In
url

Relative url

Returns

int

0 or an error code

Versions