diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2021-08-17 03:32:12 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2021-08-17 03:32:12 +0300 |
commit | fd7f2077bc6165cfb3844d8be475ae056c80c4db (patch) | |
tree | 86204d8abbb43f0aaf2c48291baf7bd387af9509 | |
parent | a126c06b0a5d585e7d7dd6d952b3f99447d15fc2 (diff) | |
download | emacs-fd7f2077bc6165cfb3844d8be475ae056c80c4db.tar.gz |
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).
-rw-r--r-- | lisp/vc/vc-git.el | 2 |
1 files changed, 1 insertions, 1 deletions
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) |