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 with valid value in at_pos; an error code otherwise