summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-10-19 00:51:54 -0400
committerKyle Meyer <kyle@kyleam.com>2015-10-19 00:51:54 -0400
commite5abe3d7cd34fe63045148de7ed9048fce03dce9 (patch)
tree51233f3822aa5f6bdb793300bfbc9b564998509c
parent3e08fad6b7387584001e511295efd1b0ed18f342 (diff)
downloademacs.d-e5abe3d7cd34fe63045148de7ed9048fce03dce9.tar.gz
magit-show-commit-at-point: use magit-diff-arguments
-rw-r--r--lisp/init-git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 9102563..f559b51 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -65,7 +65,7 @@ CHOOSE-PROJECT is non-nil, prompt for the project name."
(completing-read "Project: "
(projectile-relevant-known-projects))))
(default-directory (or project default-directory)))
- (magit-show-commit hash))
+ (magit-show-commit hash (car (magit-diff-arguments))))
(user-error "No hash found at point")))
(defun km/magit-commit-extend-with-file ()