Skip to content

Commit 115451d

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 parent 63c62ed commit 115451d

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
class SubmoduleConfigParser(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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy