libgit2

git_index_version

Version:

Get index on-disk version.

Valid return values are 2, 3, or 4. If 3 is returned, an index with version 2 may be written instead, if the extension data in version 3 is not necessary.

Signature

unsigned int git_index_version(git_index *index);

Parameters

In
index

An existing index object

Returns

unsigned int

the index version

Versions