Add a method for the git log.