diff-mode: Support committing diff with file deletions
* lisp/vc/diff-mode.el (diff-vc-deduce-fileset): Remove nil elements from the result (bug#68443).
This commit is contained in:
@@ -2955,7 +2955,7 @@ hunk text is not found in the source file."
|
||||
(goto-char (point-min))
|
||||
(while (progn (diff-file-next) (not (eobp)))
|
||||
(push (diff-find-file-name nil t) files)))
|
||||
(list backend (nreverse files) nil nil 'patch)))
|
||||
(list backend (delete nil (nreverse files)) nil nil 'patch)))
|
||||
|
||||
(defun diff--filter-substring (str)
|
||||
(when diff-font-lock-prettify
|
||||
|
||||
Reference in New Issue
Block a user