Allow using 'vc-prepare-patch' in non-VC buffers

* lisp/vc/vc.el (vc-prepare-patch): Remove
'vc-ensure-vc-buffer', as it is not necessary to verify this for
the command to work.
This commit is contained in:
Philip Kaludercic 2024-02-12 17:37:16 +01:00
parent 2f7d662dd4
commit 6aeeae6888

View file

@ -3639,7 +3639,6 @@ marked revisions, use those."
(read-string "Subject: " "[PATCH] " nil nil t))
revs)))
(save-current-buffer
(vc-ensure-vc-buffer)
(let ((patches (mapcar (lambda (rev)
(vc-call-backend
(vc-responsible-backend default-directory)