Invoke git-log if not used as a pipe.