From: Dmitry Gutov Date: Tue, 17 Aug 2021 00:32:12 +0000 (+0300) Subject: vc-git-region-history: Fix to call 'diff' more correctly X-Git-Tag: emacs-28.0.90~1472 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fd7f2077bc6165cfb3844d8be475ae056c80c4db;p=emacs.git vc-git-region-history: Fix to call 'diff' more correctly * lisp/vc/vc-git.el (vc-git-region-history): Fix to pass a list to the backend 'diff' command (bug#39452). --- diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 6b26515430f..935dc8b9aee 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -1331,7 +1331,7 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"." ;; but since Git is one of the two backends that support this operation ;; so far, it's hard to tell; hg doesn't need this. (with-temp-buffer - (vc-call-backend 'git 'diff file "HEAD" nil (current-buffer)) + (vc-call-backend 'git 'diff (list file) "HEAD" nil (current-buffer)) (goto-char (point-min)) (let ((last-offset 0) (from-offset nil)