From: Dmitry Gutov Date: Sat, 14 Oct 2023 17:01:24 +0000 (+0300) Subject: (vc-root-diff): Don't compute and pass on WORKING-REVISION X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=717d0335d72de5696c5ac035b9877fec3132d189;p=emacs.git (vc-root-diff): Don't compute and pass on WORKING-REVISION * lisp/vc/vc.el (vc-root-diff): Don't compute and pass on WORKING-REVISION (bug#66364). It was unused. --- diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index a5575f91e9c..e4ce75107ff 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -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