GitRepo.namespace

Set the active namespace for this repository.

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

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

  1. string namespace [@property getter]
  2. char[] namespace [@property setter]
    struct GitRepo
    @property
    void
    namespace
    (
    in char[] nspace
    )

Examples

auto repo = initRepo(_userRepo, OpenBare.yes);
scope(exit) rmdirRecurse(_userRepo);
repo.namespace = "foobar";
assert(repo.namespace == "foobar");

Meta