From fd7f2077bc6165cfb3844d8be475ae056c80c4db Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 17 Aug 2021 03:32:12 +0300 Subject: [PATCH] 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). --- lisp/vc/vc-git.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2