Better regexp for `ready_to_commit`

only one call for `git log`