Commit Diff


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)