Finds the resolve undo entry that points to the given path in the Git index.
the address to which the position of the reuc entry is written (optional)
an existing index object
path to search
0 if found, < 0 otherwise (GIT_ENOTFOUND)