commit 345290bf80a604ab857cfdc69abb39d97302bfdf from: Omar Polo date: Sat Dec 05 20:08:28 2020 UTC improve vc-got–diff and vc-got-diff got expects arguments to diff to be relative to the worktree, it won’t work with full path (even if those full paths are valid, i.e. inside a worktree). With this in place, we can also adjust vc-got-diff to process all the files, and so now also vc-root-diff (C-x v D) works as intended. commit - d06f9880de206d7ff5133d5ddea7cd0f67f3cb6a commit + 345290bf80a604ab857cfdc69abb39d97302bfdf blob - 134d4694b6a6a228c39056c288adca145fb21c53 blob + 05e3c027bb506f09f317382cbbb52673b58df511 --- vc-got.el +++ vc-got.el @@ -259,7 +259,8 @@ DIR-OR-FILE." (defun vc-got--diff (&rest args) "Call got diff with ARGS. The result will be stored in the current buffer." - (apply #'vc-got--call "diff" args)) + (apply #'vc-got--call "diff" + (mapcar #'file-relative-name args))) ;; Backend properties @@ -458,7 +459,7 @@ LIMIT limits the number of commits, optionally startin (vc-got-with-worktree (car files) (cond ((and (null rev1) (null rev2)) - (vc-got--diff (car files))) + (apply #'vc-got--diff files)) (t (error "Not implemented"))))))) (provide 'vc-got)