Don't dispatch autocommands when calling git commit

Closes #295.