git_repository_init_options

Extended options structure for git_repository_init_ext.

This contains extra options for git_repository_init_ext that enable additional initialization features.

Members

Variables

description
const(char)* description;

If set, this will be used to initialize the "description" file in the repository, instead of using the template content.

flags
uint flags;

Combination of GIT_REPOSITORY_INIT flags above.

initial_head
const(char)* initial_head;

The name of the head to point HEAD at. If null, then this will be treated as "master" and the HEAD ref will be set to "refs/heads/master". If this begins with "refs/" it will be used verbatim; otherwise "refs/heads/" will be prefixed.

mode
uint mode;

Set to one of the standard GIT_REPOSITORY_INIT_SHARED_... constants above, or to a custom value that you would like.

oid_type
libgit2.oid.git_oid_t oid_type;

Type of object IDs to use for this repository, or 0 for default (currently SHA1).

origin_url
const(char)* origin_url;

If this is non-null, then after the rest of the repository initialization is completed, an "origin" remote will be added pointing to this URL.

template_path
const(char)* template_path;

When git_repository_init_flag_t.GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE is set, this contains the path to use for the template directory. If this is null, the config or default directory options will be used instead.

version_
uint version_;
Undocumented in source.
workdir_path
const(char)* workdir_path;

The path to the working dir or null for default (i.e. repo_path parent on non-bare repos). IF THIS IS RELATIVE PATH, IT WILL BE EVALUATED RELATIVE TO THE REPO_PATH. If this is not the "natural" working directory, a .git gitlink file will be created here linking to the repo_path.

Meta