summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-07-09 23:00:14 -0400
committerKyle Meyer <kyle@kyleam.com>2015-07-09 23:00:14 -0400
commitb111c52ee72b44c6d43fb2c4d5b55562aab95d1e (patch)
treec40ae8ad9d78dcf49e9108f7d7221f0bd5358c57
parentf468b6531d75274b133ba089a67361b6a2b5d439 (diff)
downloademacs.d-b111c52ee72b44c6d43fb2c4d5b55562aab95d1e.tar.gz
Remove git-rebase-show-commit
Magit commit 4dd06d7f23d9267 adds a display-only variant.
-rw-r--r--lisp/init-git.el14
1 files changed, 0 insertions, 14 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 8e4c2b4..d772667 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -241,17 +241,6 @@ buffer."
(magit-find-file rev fname)
(unless other-rev (goto-char pos))))
-(defun km/git-rebase-show-commit ()
- "Show the commit on the current line if any.
-Unlike `git-rebase-show-commit', display (but don't switch to)
-the commit buffer. And no dinging."
- (interactive)
- (save-excursion
- (goto-char (line-beginning-position))
- (--if-let (and (looking-at git-rebase-line)
- (match-string 2))
- (magit-show-commit it t))))
-
(defun km/magit-insert-staged-file (&optional no-directory)
"Select staged file to insert.
This is useful for referring to file names in commit messages.
@@ -300,9 +289,6 @@ the file name if NO-DIRECTORY is non-nil."
(define-key magit-log-select-mode-map "."
'km/magit-log-select-guess-fixup-commit))
-(after 'git-rebase
- (define-key git-rebase-mode-map "\s" 'km/git-rebase-show-commit))
-
;;; Magit popups