code: def get_commit_from_gitpython(self, commit: GitCommit) -> Commit:
          
          return Commit(commit, self.path, self.main_branch)
docs: Build a PyDriller commit object from a GitPython commit object.
          This is internal of PyDriller, I don't think users generally will need
          it.
  
          :param GitCommit commit: GitPython commit
          :return: Commit commit: PyDriller commit