Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c89f09

Browse files
authored
Merge pull request#1877 from EliahKagan/doc-pc
Describe `Submodule.__init__` parent_commit parameter
2 parentsbcea9a8 +84e256d commit4c89f09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎git/objects/submodule/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ def __init__(
143143
See the `url` parameter.
144144
145145
:param parent_commit:
146-
See :meth:`set_parent_commit`.
146+
The :class:`~git.objects.commit.Commit` whose tree is supposed to contain
147+
the ``.gitmodules`` blob, or ``None`` to always point to the most recent
148+
commit. See :meth:`set_parent_commit` for details.
147149
148150
:param url:
149151
The URL to the remote repository which is the submodule.
@@ -1260,7 +1262,7 @@ def set_parent_commit(self, commit: Union[Commit_ish, str, None], check: bool =
12601262
contain the ``.gitmodules`` blob.
12611263
12621264
:param commit:
1263-
Commit-ish reference pointing at theroot_tree, or ``None`` to always point
1265+
Commit-ish reference pointing at theroot tree, or ``None`` to always point
12641266
to the most recent commit.
12651267
12661268
:param check:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp