git_repository_set_namespace

Sets the active namespace for this Git Repository

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

extern (C) nothrow @nogc
int
git_repository_set_namespace

Parameters

repo libgit2_d.types.git_repository*

The repo

nmspace const(char)*

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

Return Value

Type: int

0 on success, -1 on error

Meta