emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 1712dec0c0 1/2: Speed up vc-default-checkin-patch a little


From: Dmitry Gutov
Subject: master 1712dec0c0 1/2: Speed up vc-default-checkin-patch a little
Date: Sun, 30 Oct 2022 20:52:18 -0400 (EDT)

branch: master
commit 1712dec0c030c6fb64968a9d937b02e3cfe79e87
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Speed up vc-default-checkin-patch a little
    
    * lisp/vc/vc.el (vc-default-checkin-patch): Drop some
    'revert-buffer' calls to speed up the process a little (bug#52349).
---
 lisp/vc/vc.el | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index df51f52bc7..3e78b8cfe9 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1715,9 +1715,6 @@ Runs the normal hooks `vc-before-checkin-hook' and 
`vc-checkin-hook'."
                                              "--no-backup-if-mismatch"
                                              "-i" "-"))
               (user-error "Patch failed: %s" (buffer-string))))
-          (dolist (f files)
-            (with-current-buffer (get-file-buffer f)
-              (revert-buffer t t t)))
           (vc-call-backend backend 'checkin files comment))
       (dolist (f files)
         (copy-file (expand-file-name f tmpdir)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]