improved commit behavior.
fixed commit errors.
Merge pull request #3 from Shougo/master

commit時の挙動を改善