From 43dc1fc9b77781ebaccf65d0aebd646e8d073a9f Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 31 Aug 2015 20:37:03 -0400 Subject: Rename magit-copy-commit-citation command ... to match gitk copysummary command: http://thread.gmane.org/gmane.comp.version-control.git/274161/ --- lisp/init-git.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/init-git.el b/lisp/init-git.el index 3c4ab47..8102a9a 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -360,7 +360,7 @@ argument." (user-error "No hash found at point")))) (defvar km/magit-copy-hook - '(km/magit-copy-commit-citation-from-header + '(km/magit-copy-commit-summary-from-header km/magit-copy-commit-message km/magit-copy-region-commits km/magit-copy-region-hunk @@ -370,7 +370,7 @@ These will be given one argument (the current prefix value) and should succeed by copying and returning non-nil or fail by returning nil.") -(defun km/magit-copy-commit-citation (commit) +(defun km/magit-copy-commit-summary (commit) "Copy a citation for the COMMIT at point. Format the reference as ', (\"\", )'. If there is no commit at point or with a prefix argument, prompt for @@ -386,9 +386,9 @@ COMMIT." "--format=%h\n%s\n%ad" commit) (kill-new (message "%s (\"%s\", %s)" hash subject date)))) -(defun km/magit-copy-commit-citation-from-header (&optional arg) +(defun km/magit-copy-commit-summary-from-header (&optional arg) (magit-section-when headers - (km/magit-copy-commit-citation (car magit-refresh-args)))) + (km/magit-copy-commit-summary (car magit-refresh-args)))) (defun km/magit-copy-region-commits (&optional arg) (--when-let (magit-region-values 'commit) -- cgit v1.2.3