def last_commit ( self ) -> Tuple : from libs . repos import git return git . get_last_commit ( repo_path = self . path )
how to load commits in order python from gitlog
Returns a tuple ( hash and commit object )
def last_commit(self) -> Tuple:
        """Returns a tuple (hash, and commit object)"""
        from libs.repos import git

        return git.get_last_commit(repo_path=self.path)