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
.
GIT_SUCCESS or an error code