Open the Index inside the git repository pointed by 'repo'.
the pointer for the new index
the git repo which owns the index
0 on success; error code otherwise