Added -addToIndex:.
Note that these don't work with submodules.
Testit.
Merge pull request #339 from libgit2/submodule-index-add

Submodule index add