branch: externals/vc-got commit cb9738320a3eccea0ff0de41159e8c95bc5201f0 Author: Omar Polo <o...@omarpolo.com> Commit: Omar Polo <o...@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)))