commit 45f7f941e77baac862e47d1e1287d2baceff936f from: Omar Polo date: Tue Nov 09 14:50:56 2021 UTC don't &rest + apply: just make diff-files accept a list commit - 36e5655fd08c7b48c9c8f88467980466053316b1 commit + 45f7f941e77baac862e47d1e1287d2baceff936f blob - e67ee25f0bf21352b6b0afc76b6b3f291a920ce9 blob + 170af540e6aaf459d6b27af45f9e22b893b199a9 --- vc-got.el +++ 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