Add or update an index entry from an in-memory struct
A full copy (including the 'path' string) of the given 'source_entry' will be inserted on the index.
an existing index object
new entry object
GIT_SUCCESS or an error code