Commits all changes to the index, specifying a commitUserData Map (String -> String). This just calls
PrepareCommit(IDictionary{string, string}) (if you didn't already call it) and then
FinishCommit.
NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.