libgit2

git_index_options

Version:

The options for opening or creating an index.

Initialize with GIT_INDEX_OPTIONS_INIT. Alternatively, you can use git_index_options_init.

Signature

typedef struct git_index_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