Skip to content

Commit

Permalink
Merge pull request #1877 from EliahKagan/doc-pc
Browse files Browse the repository at this point in the history
Describe `Submodule.__init__` parent_commit parameter
  • Loading branch information
Byron authored Mar 15, 2024
2 parents bcea9a8 + 84e256d commit 4c89f09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git/objects/submodule/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def __init__(
See the `url` parameter.
:param parent_commit:
See :meth:`set_parent_commit`.
The :class:`~git.objects.commit.Commit` whose tree is supposed to contain
the ``.gitmodules`` blob, or ``None`` to always point to the most recent
commit. See :meth:`set_parent_commit` for details.
:param url:
The URL to the remote repository which is the submodule.
Expand Down Expand Up @@ -1260,7 +1262,7 @@ def set_parent_commit(self, commit: Union[Commit_ish, str, None], check: bool =
contain the ``.gitmodules`` blob.
:param commit:
Commit-ish reference pointing at the root_tree, or ``None`` to always point
Commit-ish reference pointing at the root tree, or ``None`` to always point
to the most recent commit.
:param check:
Expand Down

0 comments on commit 4c89f09

Please sign in to comment.