Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f67369 commit 0c8ca1aCopy full SHA for 0c8ca1a
git/repo/base.py
@@ -692,7 +692,7 @@ def iter_commits(
692
paths: Union[PathLike, Sequence[PathLike]] = "",
693
**kwargs: Any,
694
) -> Iterator[Commit]:
695
- """A list of Commit objects representing the history of a given ref/commit.
+ """An iterator of Commit objects representing the history of a given ref/commit.
696
697
:param rev:
698
Revision specifier, see git-rev-parse for viable options.
@@ -708,7 +708,7 @@ def iter_commits(
708
:note: To receive only commits between two named revisions, use the
709
``"revA...revB"`` revision specifier.
710
711
- :return: ``git.Commit[]``
+ :return: Iterator of ``git.Commit``
712
"""
713
if rev is None:
714
rev = self.head.commit
0 commit comments