code: def revisions(self, path, max_revisions):
          
          if self.repo.is_dirty():
              raise DirtyGitRepositoryError(self.repo.untracked_files)
  
          revisions = []
          for commit in self.repo.iter_commits(
              self.current_branch, max_count=max_revisions
          ):
              rev = Revision(
                  key=commit.name_rev.split(" ")[0],
                  author_name=commit.author.name,
                  author_email=commit.author.email,
                  date=commit.committed_date,
                  message=commit.message,
              )
              revisions.append(rev)
          return revisions
docs: Get the list of revisions.
  
          :param path: the path to target.
          :type  path: ``str``
  
          :param max_revisions: the maximum number of revisions.
          :type  max_revisions: ``int``
  
          :return: A list of revisions.
          :rtype: ``list`` of :class:`Revision`