libgit2

git_repository_new_options

Version:

The options for creating an repository from scratch.

Initialize with GIT_REPOSITORY_NEW_OPTIONS_INIT. Alternatively, you can use git_repository_new_options_init.

Signature

typedef struct git_repository_new_options { unsigned int version git_oid_t oid_type };

Members

unsigned int
version

The version

oid_type

The object ID type for the object IDs that exist in the index.

If this is not specified, this defaults to GIT_OID_SHA1.

Parameter To

Versions