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

Commit37421e1

Browse files
committed
Further revise post_clear_cache docstring
For#1847. This removes the note, and splits out some relatedmaterial from the docstring's top line into a second paragraphfor readability (since the first sentence of the top line wascomplete, and described usage).
1 parentca2ab61 commit37421e1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎git/index/util.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,10 @@ def __exit__(
6565

6666

6767
defpost_clear_cache(func:Callable[...,_T])->Callable[...,_T]:
68-
"""Decorator for functions that alter the index using the git command. This would
69-
invalidate our possibly existing entries dictionary which is why it must be deleted
70-
to allow it to be lazily reread later.
68+
"""Decorator for functions that alter the index using the git command.
7169
72-
:note:
73-
This decorator is required because not all functions related to
74-
:class:`~git.index.base.IndexFile` are implemented natively.
70+
When a git command alters the index, this invalidates our possibly existing entries
71+
dictionary, which is why it must be deleted to allow it to be lazily reread later.
7572
"""
7673

7774
@wraps(func)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp