diff options
-rw-r--r-- | lisp/km-magit.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el index bf65c4e..fa7d3af 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -204,7 +204,9 @@ date." This is equivalent to running `magit-branch-and-checkout' with START-POINT set to the current branch. \n(git checkout -b BRANCH)" - (interactive (list (magit-read-string "Branch name"))) + (interactive (list (magit-read-string "Branch name" nil nil + (--when-let (magit-get-current-branch) + (concat it "-tmp"))))) (magit-run-git "checkout" "-b" branch)) (defun km/magit-branch-backup-current () |