emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got 8ec0bb7 107/145: guard vc-got-diff against nil f


From: ELPA Syncer
Subject: [elpa] externals/vc-got 8ec0bb7 107/145: guard vc-got-diff against nil files
Date: Thu, 9 Sep 2021 15:58:43 -0400 (EDT)

branch: externals/vc-got
commit 8ec0bb76ea97b6f2a998ae6e602644601fda872d
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    guard vc-got-diff against nil files
---
 vc-got.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vc-got.el b/vc-got.el
index bb56d0b..003d62a 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -721,7 +721,8 @@ Heavily inspired by `vc-git-log-view-mode'."
   (let* ((buffer (get-buffer-create (or buffer "*vc-diff*")))
          (inhibit-read-only t))
     (with-current-buffer buffer
-      (vc-got-with-worktree (car files)
+      (vc-got-with-worktree (or (car files)
+                                default-directory)
         (if (and (null rev1)
                  (null rev2))
             (dolist (file files)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]