[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 130ad857c9 1/2: magit-branch-delete: Improve "a
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 130ad857c9 1/2: magit-branch-delete: Improve "also on remote?" prompt with >1 ref |
Date: |
Mon, 10 Apr 2023 05:01:49 -0400 (EDT) |
branch: elpa/git-commit
commit 130ad857c92ddb9fbbe7605532314444ca8f4c44
Author: Phil Sainty <phil@catalyst.net.nz>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-branch-delete: Improve "also on remote?" prompt with >1 ref
Follow-up for #4905.
---
lisp/magit-branch.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/magit-branch.el b/lisp/magit-branch.el
index 73f7bbf50f..f810f2eb45 100644
--- a/lisp/magit-branch.el
+++ b/lisp/magit-branch.el
@@ -596,8 +596,10 @@ prompt is confusing."
(format "Deleting local %s. Also delete on %s"
(magit-ref-fullname (car branches))
remote)
- "Delete %i branches on the remote (not just locally)"
- 'noabort branches)
+ (format "Deleting %i local refs. Also delete on %s"
+ (length refs)
+ remote)
+ 'noabort refs)
;; The ref may actually point at another rev on the remote,
;; but this is better than nothing.
(dolist (ref refs)