CommitDlg: Use libgit2 for updating index

(fixes issue #1085)

Signed-off-by: Sven Strickroth <email@cs-ware.de>