Return commits in chronological order

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
2022-08-02 20:53:29 +02:00
parent 8bc6a7b578
commit a2bf978fde
2 changed files with 5 additions and 1 deletions

View File

@@ -216,7 +216,7 @@ class RepoTool:
@__check_initialized
def list_commits(self, max_depth: Optional[int] = None):
return self._repo.iter_commits(all = True, max_count = max_depth)
return self._repo.iter_commits(all = True, max_count = max_depth, reverse = True)
@__check_initialized
def list_submodules(self, commit: str = "HEAD") -> Union[list, bool]: