We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 152fb36 commit 50c011dCopy full SHA for 50c011d
autohooks/api/git.py
@@ -333,9 +333,13 @@ def _apply_diff(patch: bytes) -> None:
333
334
class stash_unstaged_changes: # pylint: disable=invalid-name
335
"""
336
- A context manager that stashes changes on tracked files that are not added
337
- to the index. The stashed changes are restored when the context manager
338
- exits.
+ A context manager that stashes changes that
+ - are not staged, and
+ - affect files that are partially staged.
339
+ Changes that are made before the context manager exits, are added to the
340
+ index.
341
+
342
+ The stashed changes are restored when the context manager exits.
343
344
Example: ::
345
0 commit comments