summaryrefslogtreecommitdiff
path: root/lisp/km-magit.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2019-02-16 00:00:51 -0500
committerKyle Meyer <kyle@kyleam.com>2019-02-16 00:00:51 -0500
commit84bec74de2d5a0303c984add16072fbc2e21da76 (patch)
tree11c6fdd5ef358ed5d0ad51ba368e1af00820f3a9 /lisp/km-magit.el
parentab6299a6be26ba8320a225d94d141e845e5ecc0a (diff)
downloademacs.d-84bec74de2d5a0303c984add16072fbc2e21da76.tar.gz
km/magit-branch-backup-current: Use "--copy"
... so that the reflog is copied as well.
Diffstat (limited to 'lisp/km-magit.el')
-rw-r--r--lisp/km-magit.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 14083bd..0ea2b02 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -183,7 +183,7 @@ argument CHOOSE-SUFFIX, prompt for a suffix to use instead of
(let ((current (or (magit-get-current-branch)
(user-error "No current branch"))))
(magit-run-git
- "branch"
+ "branch" "--copy"
(let* ((suffix (if choose-suffix
(magit-read-string-ns "Backup suffix")
"v"))