branch: externals/vc-got
commit 1d573c91bbabfd2d81aa34286d349a65c52c9298
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>

    rename arguments to emphasize that they must be files
---
 vc-got.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index 3a6905e..2b2c064 100755
--- a/vc-got.el
+++ b/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.

Reply via email to