Find the first position of any entries which point to given path in the Git index.
the address to which the position of the index entry is written (optional)
an existing index object
path to search
a zero-based position in the index if found; GIT_ENOTFOUND otherwise