branch: elpa/git-commit
commit c2e264048845b9ba5bb42f8c7c9d904ab7c0fc09
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-{discard,reverse}-hunks: Use %d in format string
---
lisp/magit-apply.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/magit-apply.el b/lisp/magit-apply.el
index 81357ce287..2c7a79601f 100644
--- a/lisp/magit-apply.el
+++ b/lisp/magit-apply.el
@@ -548,7 +548,7 @@ of a side, then keep that side without prompting."
(funcall apply section "--reverse" "--index"))))
(defun magit-discard-hunks (sections)
- (magit-confirm 'discard (format "Discard %s hunks from %s"
+ (magit-confirm 'discard (format "Discard %d hunks from %s"
(length sections)
(magit-section-parent-value (car sections))))
(magit-discard-apply-n sections #'magit-apply-hunks))
@@ -738,7 +738,7 @@ so causes the change to be applied to the index as well."
(defun magit-reverse-hunks (sections args)
(magit-confirm 'reverse
- (format "Reverse %s hunks from %s"
+ (format "Reverse %d hunks from %s"
(length sections)
(magit-section-parent-value (car sections))))
(magit-reverse-apply sections #'magit-apply-hunks args))