]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-root-diff): Don't compute and pass on WORKING-REVISION
authorDmitry Gutov <dmitry@gutov.dev>
Sat, 14 Oct 2023 17:01:24 +0000 (20:01 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Sat, 14 Oct 2023 17:01:24 +0000 (20:01 +0300)
* lisp/vc/vc.el (vc-root-diff): Don't compute and pass on
WORKING-REVISION (bug#66364).  It was unused.

lisp/vc/vc.el

index a5575f91e9ca001c520a3a33bf72d69fa44d631a..e4ce75107ffec31baddf7d2664b6e018019ea921 100644 (file)
@@ -2238,7 +2238,7 @@ saving the buffer."
     (vc-maybe-buffer-sync not-urgent)
     (let ((backend (vc-deduce-backend))
          (default-directory default-directory)
-         rootdir working-revision)
+         rootdir)
       (if backend
          (setq rootdir (vc-call-backend backend 'root default-directory))
        (setq rootdir (read-directory-name "Directory for VC root-diff: "))
@@ -2246,14 +2246,13 @@ saving the buffer."
        (if backend
            (setq default-directory rootdir)
          (error "Directory is not version controlled")))
-      (setq working-revision (vc-working-revision rootdir))
       ;; VC diff for the root directory produces output that is
       ;; relative to it.  Bind default-directory to the root directory
       ;; here, this way the *vc-diff* buffer is setup correctly, so
       ;; relative file names work.
       (let ((default-directory rootdir))
         (vc-diff-internal
-         t (list backend (list rootdir) working-revision) nil nil
+         t (list backend (list rootdir)) nil nil
          (called-interactively-p 'interactive))))))
 
 ;;;###autoload