emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got 1d573c9 119/145: rename arguments to emphasize t


From: ELPA Syncer
Subject: [elpa] externals/vc-got 1d573c9 119/145: rename arguments to emphasize that they must be files
Date: Thu, 9 Sep 2021 15:58:46 -0400 (EDT)

branch: externals/vc-got
commit 1d573c91bbabfd2d81aa34286d349a65c52c9298
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    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

[Prev in Thread] Current Thread [Next in Thread]