From e12db85d4c658df11bd60a54fc46b48d8827ef09 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sat, 22 Aug 2015 14:20:57 +0200 Subject: explicitly define magit-find-{file,index}-hook Re #2198. --- lisp/magit.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/magit.el b/lisp/magit.el index 66794d7..006b632 100644 --- a/lisp/magit.el +++ b/lisp/magit.el @@ -1004,6 +1004,8 @@ existing one." (defun magit-get-revision-buffer-create (rev file) (magit-get-revision-buffer rev file t)) +(defvar magit-find-file-hook nil) + (defun magit-find-file-noselect (rev file) "Read FILE from REV into a buffer and return the buffer. FILE must be relative to the top directory of the repository." @@ -1023,6 +1025,8 @@ FILE must be relative to the top directory of the repository." (run-hooks 'magit-find-file-hook) (current-buffer)))) +(defvar magit-find-index-hook nil) + (defun magit-find-file-index-noselect (file &optional revert) "Read FILE from the index into a buffer and return the buffer. FILE must to be relative to the top directory of the repository." -- cgit v1.0