libgit2

git_repository_set_namespace

Version:

Sets the active namespace for this Git Repository

This namespace affects all reference operations for the repo. See man gitnamespaces

Signature

int git_repository_set_namespace(git_repository *repo, const char *nmspace);

Parameters

In
repo

The repo

const char *
In
nmspace

The namespace. This should not include the refs folder, e.g. to namespace all references under refs/namespaces/foo/, use foo as the namespace.

Returns

int

0 on success, -1 on error

Versions