In commit 447f45cf, `magit-string-has-prefix-p' was replaced with `string-prefix-p', but in `magit-revert-buffers' we erroneously also pass DIR as IGNORE-CASE to `string-prefix-p' instead of simply swapping STR1 and STR2 like in `magit-update-vc-modeline'.
Signed-off-by: Pieter Praet <[email protected]> --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 9720734..feb39e2 100644 --- a/magit.el +++ b/magit.el @@ -2758,7 +2758,7 @@ (defun magit-revert-buffers (dir &optional ignore-modtime) (not (buffer-modified-p buffer)) ;; don't revert indirect buffers, as the parent will be reverted (not (buffer-base-buffer buffer)) - (string-prefix-p dir (buffer-file-name buffer) dir) + (string-prefix-p dir (buffer-file-name buffer)) (file-readable-p (buffer-file-name buffer)) (or ignore-modtime (not (verify-visited-file-modtime buffer)))) (with-current-buffer buffer -- 1.7.11.1 -- --- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
