branch: elpa/magit
commit 3c0c4df461a22fa9dd2eee3831ae8e56e9f7a914
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-apply-patch: Do not refresh twice
Closes #5343.
---
lisp/magit-apply.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/magit-apply.el b/lisp/magit-apply.el
index b0edf9784eb..a49f8fedd56 100644
--- a/lisp/magit-apply.el
+++ b/lisp/magit-apply.el
@@ -229,10 +229,11 @@ adjusted as \"@@ -10,6 +10,7 @@\" and \"@@ -18,6 +19,7
@@\"."
(magit-wip-commit-before-change files (concat " before " command)))
(with-temp-buffer
(insert patch)
- (magit-run-git-with-input
- "apply" args "-p0"
- (and ignore-context "-C0")
- "--ignore-space-change" "-"))
+ (let ((magit-inhibit-refresh t))
+ (magit-run-git-with-input
+ "apply" args "-p0"
+ (and ignore-context "-C0")
+ "--ignore-space-change" "-")))
(unless magit-inhibit-refresh
(when magit-wip-after-apply-mode
(magit-wip-commit-after-apply files (concat " after " command)))