branch: elpa/magit commit 39d49fafb8118360a9b64c90c5975256776fc1e9 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-dired-log: Do not limit to tracked files If a file was tracked in the past, isn't being tracked anymore, but still/again exists for some reason, we might still be interested in its history. --- lisp/magit-dired.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/magit-dired.el b/lisp/magit-dired.el index e980707462..e5deb95d42 100644 --- a/lisp/magit-dired.el +++ b/lisp/magit-dired.el @@ -61,13 +61,11 @@ is no file at point, then instead visit `default-directory'." ;;;###autoload (defun magit-dired-log (&optional follow) - "Show log for all marked files, or the current file." + "In Dired, show log for all marked files or the file at point." (interactive "P") (if-let ((topdir (magit-toplevel default-directory))) (let ((args (car (magit-log-arguments))) - (files (dired-get-marked-files nil nil #'magit-file-tracked-p))) - (unless files - (user-error "No marked file is being tracked by Git")) + (files (dired-get-marked-files))) (when (and follow (not (member "--follow" args)) (not (cdr files)))