Function: magit-show-commit-removing-file
magit-show-commit-removing-file is an autoloaded, interactive and
byte-compiled function defined in magit-diff.el.
Signature
(magit-show-commit-removing-file FILE &optional ARGS)
Documentation
Show the commit that removed FILE.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-diff.el
;;;###autoload
(defun magit-show-commit-removing-file (file &optional args)
"Show the commit that removed FILE."
(interactive
(let* ((files (magit-removed-files))
(default (magit-file-relative-name))
(default (and default (member default files) default)))
(list (magit-completing-read "Show commit removing file: "
files nil nil nil nil default)
(car (magit-show-commit--arguments)))))
(if-let ((rev (magit-with-toplevel
(magit-git-string "log" "--format=%H" "--diff-filter=D"
"--full-history" "-n" "1" "--" file))))
(magit-show-commit rev args)
(error "%s has not been removed" file)))