Open the Index file of a Git repository
This returns a new and unique git_index
object representing the
active index for the repository.
This method may be called more than once (e.g. on different threads).
Each returned git_index
object is independent and suffers no race
conditions: synchronization is done at the FS level.
Each returned git_index
object must be manually freed by the user,
using git_index_free
.
0 on success; error code if the index could not be opened