git_index_set_version

Set index on-disk version.

Valid values are 2, 3, or 4. If 2 is given, git_index_write may write an index with version 3 instead, if necessary to accurately represent the index.

extern (C) nothrow @nogc
int
git_index_set_version

Parameters

index libgit2_d.types.git_index*

An existing index object

version_ uint

The new version number

Return Value

Type: int

0 on success, -1 on failure

Meta