summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-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 ()