]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow using 'vc-prepare-patch' in non-VC buffers
authorPhilip Kaludercic <philipk@posteo.net>
Mon, 12 Feb 2024 16:37:16 +0000 (17:37 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 13 Feb 2024 13:10:05 +0000 (14:10 +0100)
* 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.

(cherry picked from commit 6aeeae68885e09a7253a0076d0f81cc46b37f20d)

lisp/vc/vc.el

index f612daaa569c4c2a5ff1a06ac53e2b3c84573d4e..ca6efeabac25d02447f826fd995220c23f621520 100644 (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)