Commit Diff


commit - f7012697f8540a5d071773e3da7e7240efbc11f4
commit + 1d573c91bbabfd2d81aa34286d349a65c52c9298
blob - 3a6905eae4af5f244f620983babc94fa2080905c
blob + 2b2c0647499f8bd33559914631c053e579b081ad
--- vc-got.el
+++ vc-got.el
@@ -366,13 +366,14 @@ the specified PATHS."
              branch
              (buffer-string)))))
 
-(defun vc-got--diff (&rest args)
-  "Call got diff with ARGS.  The result will be stored in the current buffer."
+(defun vc-got--diff (&rest files)
+  "Call got diff against FILES.
+The result will be stored in the current buffer."
   (let (process-file-side-effects)
     (zerop (vc-got--call "diff"
                          (vc-switches 'got 'diff)
                          "--"
-                         (mapcar #'file-relative-name args)))))
+                         (mapcar #'file-relative-name files)))))
 
 (defun vc-got--unstage (file-or-directory)
   "Unstage all the staged hunks at or within FILE-OR-DIRECTORY.