[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit e34153df25 1/2: magit-update-default-branch: Im
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit e34153df25 1/2: magit-update-default-branch: Improve a prompt |
Date: |
Sun, 3 Sep 2023 15:59:37 -0400 (EDT) |
branch: elpa/git-commit
commit e34153df25b2c32892bded288f749864ebdf86fd
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-update-default-branch: Improve a prompt
---
lisp/magit-remote.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/magit-remote.el b/lisp/magit-remote.el
index 5c4d64d72b..eb6a6c7536 100644
--- a/lisp/magit-remote.el
+++ b/lisp/magit-remote.el
@@ -268,9 +268,10 @@ Delete the symbolic-ref \"refs/remotes/<remote>/HEAD\"."
((equal oldname newname)
(setq oldname
(read-string
- (format "Name of default branch is still `%s', %s\n%s" oldname
- "but some upstreams might need updating."
- "Name of upstream branches to update: ")))
+ (format
+ "Name of default branch is still `%s', %s\n%s `%s': " oldname
+ "but the upstreams of some local branches might need updating."
+ "Name of upstream branches to replace with" newname)))
(magit--set-default-branch newname oldname)
(magit-refresh))
(t