Fixing Git commit, as far as it should work as git commit -a.

Unifying the commit behavior between git and mercurial
Merge pull request #6 from magmax/magmax/fix-git-commit

Unify git and hg commit implementations to work like 'hg commit'