branch: externals/vc-got commit 8ec0bb76ea97b6f2a998ae6e602644601fda872d Author: Omar Polo <o...@omarpolo.com> Commit: Omar Polo <o...@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)