Correct a stale reference to GIT_EBAREINDEX
Give the correct name for the function in the doc.

Per @carlosmn, git_index_add is now named git_index_add_bypath.
Merge pull request #2231 from libgit2/fix-memory-index-doc-comment

Correct a stale reference to GIT_EBAREINDEX