diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-05-18 08:53:18 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-05-18 08:53:18 +0200 |
| commit | 424af9bbc611f95c48780c25105d8abbba5abc33 (patch) | |
| tree | 6b0f8c7b2cff06d77105a86ebf1546cd4e1d40b7 /lisp | |
| parent | cfe4faaaf6791e6f0aa64108b16b9b0074251fb8 (diff) | |
magit-refresh: Mention magit-unwind-refresh-hook in docstring
It was added in [1: 9f838cc041] and unlike `magit-post-refresh-hook'
it is run even in case of an error. However, it is unclear why that
is needed.
It might or might not make sense for `magit-refresh-all' to also run
this hook. For now do not start doing so.
1: 2018-03-19 9f838cc041db2ccfe0d67a501e3188a8a61e4446
magit-refresh: Always run new magit-unwind-refresh-hook
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el index 15bed5f..e89d93b 100644 --- a/lisp/magit-mode.el +++ b/lisp/magit-mode.el @@ -1020,7 +1020,8 @@ window." Refresh the current buffer if its major mode derives from `magit-mode', and refresh the corresponding status buffer. -Run hooks `magit-pre-refresh-hook' and `magit-post-refresh-hook'." +Run hooks `magit-pre-refresh-hook', `magit-post-refresh-hook' +and `magit-unwind-refresh-hook'." (interactive) (unless magit-inhibit-refresh (unwind-protect |
