diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2015-08-22 14:20:57 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2015-08-22 14:20:57 +0200 |
| commit | e12db85d4c658df11bd60a54fc46b48d8827ef09 (patch) | |
| tree | 05d7a540fff34715447dc4406c3377a19f76c1a6 /lisp | |
| parent | f084aa9f5ebc57d3ede5fa95f501c5d1f841ae76 (diff) | |
explicitly define magit-find-{file,index}-hook
Re #2198.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit.el | 4 |
1 files changed, 4 insertions, 0 deletions
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." |
