summaryrefslogtreecommitdiff
path: root/lisp/init-git.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-10-04 01:03:30 -0400
committerKyle Meyer <kyle@kyleam.com>2015-10-04 01:03:30 -0400
commitf0280cf9c326464e481cc2f92908fb0c3643d1ca (patch)
treea3a71df330b966b43a4daac51a22d2df766fb5d6 /lisp/init-git.el
parent9f81e8a0e609b209e79ea9f275fea6a54ebb46c8 (diff)
downloademacs.d-f0280cf9c326464e481cc2f92908fb0c3643d1ca.tar.gz
Update for magit-copy-as-kill rename
Renamed in 4679d9b (implement a revision stack for inserting revs into messages, 2015-09-22).
Diffstat (limited to 'lisp/init-git.el')
-rw-r--r--lisp/init-git.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 666af88..3f6eff3 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -454,14 +454,14 @@ COMMIT."
(defun km/magit-copy-as-kill ()
"Try `km/magit-copy-hook' before calling `magit-copy-as-kill'.
-With a prefix argument of -1, always call `magit-copy-as-kill'.
+With a prefix argument of -1, always call `magit-copy-section-value'
Otherwise, the current prefix argument is passed to each hook
function."
(interactive)
(or (unless (= (prefix-numeric-value current-prefix-arg) -1)
(run-hook-with-args-until-success
'km/magit-copy-hook current-prefix-arg))
- (magit-copy-as-kill)))
+ (magit-copy-section-value)))
(defun km/magit-avy-goto-subword-1 ()
"Like `km/avy-goto-subword-1', but maybe show commit and limit to window."