branch: elpa/magit
commit 424af9bbc611f95c48780c25105d8abbba5abc33
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    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
---
 lisp/magit-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 15bed5f082..e89d93b956 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

Reply via email to