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.
An existing index object
The new version number
0 on success, -1 on failure
See Implementation
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.