diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-10-19 00:51:54 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-10-19 00:51:54 -0400 |
commit | e5abe3d7cd34fe63045148de7ed9048fce03dce9 (patch) | |
tree | 51233f3822aa5f6bdb793300bfbc9b564998509c | |
parent | 3e08fad6b7387584001e511295efd1b0ed18f342 (diff) | |
download | emacs.d-e5abe3d7cd34fe63045148de7ed9048fce03dce9.tar.gz |
magit-show-commit-at-point: use magit-diff-arguments
-rw-r--r-- | lisp/init-git.el | 2 |
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 () |