libgit2

git_remote_name_is_valid

Version:

Ensure the remote name is well-formed.

Signature

int git_remote_name_is_valid(int *valid, const char *remote_name);

Parameters

int *
In
valid

output pointer to set with validity of given remote name

const char *
In
remote_name

name to be checked.

Returns

int

0 on success or an error code

Versions