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

Commit115451d

Browse files
committed
Change _write to write in SubmoduleConfigParser docstring
Since it appears to refer to the write method, which it overrides,rather that the nonpublic _write method (which is not overridden,and whose direct calls are not affected).
1 parent63c62ed commit115451d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎git/objects/submodule/util.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ def find_first_remote_branch(remotes: Sequence["Remote"], branch_name: str) -> "
7070

7171

7272
classSubmoduleConfigParser(GitConfigParser):
73-
"""Catches calls to _write, and updates the ``.gitmodules`` blob in the index
74-
with the new data, if we have written into a stream.
73+
"""Catches calls to :meth:`~git.config.GitConfigParser.write`, and updates the
74+
``.gitmodules`` blob in the index with the new data, if we have written into a
75+
stream.
7576
7677
Otherwise it would add the local file to the index to make it correspond with the
7778
working tree. Additionally, the cache must be cleared.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp