aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-commit.el
diff options
context:
space:
mode:
authorPhil Sainty <phil@catalyst.net.nz>2023-04-03 11:55:20 +1200
committerJonas Bernoulli <jonas@bernoul.li>2023-04-10 10:57:06 +0200
commitd62e8fb8c4d34ffdfc71fe9998b61cc0f8c0fa4a (patch)
tree2afbfb9c47a62f5ebef8a8011ce3bda98eef2980 /lisp/magit-commit.el
parent130ad857c92ddb9fbbe7605532314444ca8f4c44 (diff)
Use the documented format construct %d instead of %i
For printf compatibility, %i is equivalent[1] to %d -- but only %d is documented. The simple %i cases are being passed directly to `format', or indirectly via `magit-confirm'. The %%i cases are being processed by either (format (format ...)) or (magit-confirm (format ...)). [1] See styled_format() in src/editfns.c, which consistently tests conversion == 'd' || conversion == 'i'.
Diffstat (limited to 'lisp/magit-commit.el')
-rw-r--r--lisp/magit-commit.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el
index d22c39e..3b6f226 100644
--- a/lisp/magit-commit.el
+++ b/lisp/magit-commit.el
@@ -345,7 +345,7 @@ depending on the value of option `magit-commit-squash-confirm'."
(m2 ".\nDo you really want to modify it"))
(magit-confirm 'amend-published
(concat m1 "%s" m2)
- (concat m1 "%i public branches" m2)
+ (concat m1 "%d public branches" m2)
nil it))))
(defun magit-commit-assert (args &optional strict)