branch: elpa/magit
commit a6aa23591875af70d5efbff10c983595f9b0a353
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-find-file-index-noselect: Deprecate
---
lisp/magit-files.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index beae1edf4a..2aee729d4b 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -210,11 +210,7 @@ See also https://github.com/doomemacs/doomemacs/pull/6309."
(unless magit-buffer-revision
(apply fn args)))
-;;; Find Index
-
-(defun magit-find-file-index-noselect (file)
- "Read FILE from the index into a buffer and return the buffer."
- (magit-find-file-noselect "{index}" file t))
+;;; Update Index
(defun magit-update-index ()
"Update the index with the contents of the current buffer.
@@ -648,6 +644,11 @@ If DEFAULT is non-nil, use this as the default value
instead of
(funcall display buf)
buf))
+(defun magit-find-file-index-noselect (file)
+ "Read FILE from the index into a buffer and return the buffer."
+ (declare (obsolete magit-find-file-noselect "Magit 4.6.0"))
+ (magit-find-file-noselect "{index}" file t))
+
(provide 'magit-files)
;; Local Variables:
;; read-symbol-shorthands: (