emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit c2e2640488 1/4: magit-{discard, reverse}-hunks:


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit c2e2640488 1/4: magit-{discard, reverse}-hunks: Use %d in format string
Date: Sun, 21 Jul 2024 13:00:06 -0400 (EDT)

branch: elpa/git-commit
commit c2e264048845b9ba5bb42f8c7c9d904ab7c0fc09
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]