summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-08-31 20:37:03 -0400
committerKyle Meyer <kyle@kyleam.com>2015-08-31 20:37:03 -0400
commit43dc1fc9b77781ebaccf65d0aebd646e8d073a9f (patch)
tree9f108b59a4061c17d7545331a0e10158d768a415
parent5df95662eb2f07564101fd303159f176f605c588 (diff)
downloademacs.d-43dc1fc9b77781ebaccf65d0aebd646e8d073a9f.tar.gz
Rename magit-copy-commit-citation command
... to match gitk copysummary command: http://thread.gmane.org/gmane.comp.version-control.git/274161/
-rw-r--r--lisp/init-git.el8
1 files 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 '<hash>, (\"<subject>\", <date>)'. 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)