branch: elpa/magit commit 3a9bcd475bcf24282b352669e2cfe1f5b4a34e9d Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-find-file-noselect: Fill docstring --- lisp/magit-files.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lisp/magit-files.el b/lisp/magit-files.el index ca2db5e7952..f4b792e6915 100644 --- a/lisp/magit-files.el +++ b/lisp/magit-files.el @@ -109,11 +109,10 @@ the line and column corresponding to that location." (defun magit-find-file-noselect (rev file &optional revert) "Read FILE from REV into a buffer and return the buffer. -REV is a revision or one of \"{worktree}\" or \"{index}\". -FILE must be relative to the top directory of the repository. -Non-nil REVERT means to revert the buffer. If `ask-revert', -then only after asking. A non-nil value for REVERT is ignored if REV is -\"{worktree}\"." +REV is a revision or one of \"{worktree}\" or \"{index}\". FILE must +be relative to the top directory of the repository. Non-nil REVERT +means to revert the buffer. If `ask-revert', then only after asking. +A non-nil value for REVERT is ignored if REV is \"{worktree}\"." (if (equal rev "{worktree}") (find-file-noselect (expand-file-name file (magit-toplevel))) (let ((topdir (magit-toplevel)))