Return commits in chronological order
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user