Commit 35cceef77243

Vincent Demeester <vincent@sbr.pm>
2018-09-13 21:11:10
Revert "Add git-commit history binded to `M-r'"
This reverts commit 094d79bb0be1dd1faa076ba44bd3b41f3d86a2b7.
1 parent 094d79b
Changed files (1)
lisp/vde-vcs.el
@@ -72,16 +72,6 @@
   :defer 2
   :init (global-git-commit-mode)
   :config
-  (defun ar/git-commit-search-message-history ()
-    "Search and insert commit message from history."
-    (interactive)
-    (insert (completing-read "History: "
-                             ;; Remove unnecessary newlines from beginning and end.
-                             (mapcar (lambda (text)
-                                       (string-trim text))
-                                     (ring-elements log-edit-comment-ring)))))
-  (bind-key "M-r" #'ar/git-commit-search-message-history git-commit-mode-map)
-  (add-to-list 'savehist-additional-variables log-edit-comment-ring)
   (remove-hook 'git-commit-finish-query-functions
                #'git-commit-check-style-conventions))