Skip to content

Commit

Permalink
Small refactoring. Preparing for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ishepard committed Dec 13, 2018
1 parent 19158dc commit 9188487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions pydriller/git_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ def get_head(self) -> Commit:

def get_list_commits(self, branch: str = None, reverse_order: bool = True) -> Generator[Commit, None, None]:
"""
Return the list of all the commits in the repo.
Return a generator of commits of all the commits in the repo.
:return: List[Commit], the list of all the commits in the repo
:return: Generator[Commit], the generator of all the commits in the repo
"""
return self._get_all_commits(branch, reverse_order)

def _get_all_commits(self, branch: str = None, reverse_order: bool = True) -> Generator[Commit, None, None]:
for commit in self.repo.iter_commits(branch, reverse=reverse_order):
yield self.get_commit_from_gitpython(commit)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def read_reqs(filename: str):
long_description = long_description,
author='Davide Spadini',
author_email='spadini.davide@gmail.com',
version='1.6.1',
version='1.6.2',
packages=find_packages('.'),
url='https://github.com/ishepard/pydriller',
license='Apache License',
Expand Down

0 comments on commit 9188487

Please sign in to comment.