Get an unmerged entry from the index.
The returned entry is read-only and should not be modified of freed by the caller.
an existing index object
path to search
the unmerged entry; NULL if not found