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

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

[elpa] externals/vc-got 45f7f94 2/2: don't &rest + apply: just make diff


From: ELPA Syncer
Subject: [elpa] externals/vc-got 45f7f94 2/2: don't &rest + apply: just make diff-files accept a list
Date: Tue, 9 Nov 2021 09:57:41 -0500 (EST)

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

    don't &rest + apply: just make diff-files accept a list
---
 vc-got.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index e67ee25..170af54 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -349,7 +349,7 @@ the specified PATHS."
              branch
              (buffer-string)))))
 
-(defun vc-got--diff-files (&rest files)
+(defun vc-got--diff-files (files)
   "Compute the local modifications to FILES."
   (let (process-file-side-effects)
     (zerop (vc-got--call "diff" (vc-switches 'got 'diff) "-P" "--"
@@ -749,7 +749,7 @@ Heavily inspired by `vc-git-log-view-mode'."
                                 default-directory)
         (cond ((and (null rev1)
                     (null rev2))
-               (apply #'vc-got--diff-files files))
+               (vc-got--diff-files files))
               ((and (null rev1)
                     rev2)
                ;; TODO: this includes the whole diff while to respect



reply via email to

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