GeezerVison is showing github.com — Further revise post_clear_cache docstring · EliahKagan/GitPython@37421e1
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: git/index/util.py +3-6Lines changed: 3 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -65,13 +65,10 @@ def __exit__( |
65 | 65 |
|
66 | 66 |
|
67 | 67 | def post_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. |
71 | 69 |
|
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. |
75 | 72 | """ |
76 | 73 |
|
77 | 74 | @wraps(func) |
|