code: def iter_commits(self, rev=None, paths='', **kwargs):
          
          if rev is None:
              rev = self.head.commit
  
          return Commit.iter_items(self, rev, paths, **kwargs)
docs: A list of Commit objects representing the history of a given ref/commit
  
          :param rev:
              revision specifier, see git-rev-parse for viable options.
              If None, the active branch will be used.
  
          :param paths:
              is an optional path or a list of paths to limit the returned commits to
              Commits that do not contain that path or the paths will not be returned.
  
          :param kwargs:
              Arguments to be passed to git-rev-list - common ones are
              max_count and skip
  
          :note: to receive only commits between two named revisions, use the
              "revA...revB" revision specifier
  
          :return: ``git.Commit[]``