Update the contents of an existing index object in memory by reading from the hard disk.
an existing index object
GIT_SUCCESS or an error code