Don't show commit dialog when there's nothing to commit.