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

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

[elpa] externals/vc-got cb97383 085/145: ignore ignored files but not up


From: ELPA Syncer
Subject: [elpa] externals/vc-got cb97383 085/145: ignore ignored files but not up-to-date ones
Date: Thu, 9 Sep 2021 15:58:39 -0400 (EDT)

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

    ignore ignored files but not up-to-date ones
    
    really fixes #12
    
    I was too fast at committing the previous diff.  The previous commit
    will effectively ignore "ignored" files, but also up-to-date ones!
    This de-ignore (is that a word?) the up-to-date files, while still
    hiding the ignored ones.  Hope this makes sense.
---
 vc-got.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index a38a5da..bb01f47 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -435,8 +435,9 @@ FILES is nil, consider all the files in DIR."
                   ;; either up-to-date or ignored.  Save it for a
                   ;; double check
                   (push file double-check)))
-    (cl-loop for (file status _) in (vc-got--status nil dir double-check)
-             unless (eq status 'unregistered)
+    (cl-loop with statuses = (vc-got--status nil dir double-check)
+             for file in double-check
+             unless (eq 'unregistered (cadr (assoc file statuses #'string=)))
              do (push (list file 'up-to-date nil) res))
     (funcall update-function res nil)))
 



reply via email to

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