Refactor Repo#log.

Replace param name 'commit' to 'ref'.
Return all commits if 'ref' param was nil.
Add description about method.