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
0 or an error code