[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master fd7f207: vc-git-region-history: Fix to call 'diff' more correctly
From: |
Dmitry Gutov |
Subject: |
master fd7f207: vc-git-region-history: Fix to call 'diff' more correctly |
Date: |
Mon, 16 Aug 2021 20:32:18 -0400 (EDT) |
branch: master
commit fd7f2077bc6165cfb3844d8be475ae056c80c4db
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
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 6b26515..935dc8b 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master fd7f207: vc-git-region-history: Fix to call 'diff' more correctly,
Dmitry Gutov <=