git_submodule_set_url

Set the URL for the submodule in the configuration

More...
extern (C) nothrow @nogc
int
git_submodule_set_url
(,
const(char)* name
,
const(char)* url
)

Parameters

repo libgit2_d.types.git_repository*

the repository to affect

name const(char)*

the name of the submodule to configure

url const(char)*

URL that should be used for the submodule

Return Value

Type: int

0 on success, <0 on failure

Detailed Description

After calling this, you may wish to call git_submodule_sync() to write the changes to the checked out submodule repository.

Meta