[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got d346ca6 084/145: ignore ignored files
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got d346ca6 084/145: ignore ignored files |
Date: |
Thu, 9 Sep 2021 15:58:39 -0400 (EDT) |
branch: externals/vc-got
commit d346ca63650d46333fb950a6c5926458949f1c94
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>
ignore ignored files
closes #12
The rationale is that `got status` doesn't print the status of the
file if it is either up-to-date or ignored by .gitignore or
.cvsignore. Thus, we were marking as up-to-date the ignored files in
*vc-dir*. (vc-got-state was working as expected.)
This tries to fix the situation. File for which `got status` doesn't
print any info are saved in a double-check list, and we issue a second
`got status` only against the double check list, and push onto res
only the up-to-date ones.
---
vc-got.el | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/vc-got.el b/vc-got.el
index 3dec6b9..a38a5da 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -420,16 +420,25 @@ files on disk."
The builded result is given to the callback UPDATE-FUNCTION. If
FILES is nil, consider all the files in DIR."
(let* ((fs (vc-got--dir-filter-files (or files (directory-files dir))))
- (res (vc-got--status nil dir files)))
+ ;; XXX: we call with files, wich will probably be nil on the
+ ;; first run, so we catch deleted, missing and edited files
+ ;; in subdirectories.
+ (res (vc-got--status nil dir files))
+ double-check)
(cl-loop for file in fs
do (when (and (not (cdr (assoc file res #'string=)))
(not (file-directory-p file))
;; if file doesn't exists, it's a
;; untracked file that was removed.
(file-exists-p file))
- (push (list file 'up-to-date nil)
- res))
- finally (funcall update-function res nil))))
+ ;; if we don't know the status of a file here, it's
+ ;; 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)
+ do (push (list file 'up-to-date nil) res))
+ (funcall update-function res nil)))
(defun vc-got-dir-extra-headers (dir)
"Return a string for the `vc-dir' buffer heading for directory DIR."
- [elpa] externals/vc-got 3efc759 141/145: cleanup, (continued)
- [elpa] externals/vc-got 3efc759 141/145: cleanup, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f457868 024/145: typo, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 06d4d37 031/145: add Makefile, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got ddc59a0 057/145: remove extra parens from vc-got-unregister and fix pcase matchall, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f8a9db5 060/145: fix vc-got-repository-url for checkout of non-bare repos, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 9e01941 078/145: improve vc-dir presentation & document vc-got-stage in README, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a7777ea 079/145: list also staged addition/removals, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 668dc8e 068/145: vc-got--status: handle stage info and filter result, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7a5ead6 061/145: vc-got-repository-url: avoid infinite loops in parsing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 0d57aba 072/145: remove the separator when showing a chunk to stage, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got d346ca6 084/145: ignore ignored files,
ELPA Syncer <=
- [elpa] externals/vc-got 67e0b4d 096/145: add note for the future, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6ab1c7b 102/145: implement the tag creation part of vc-got-create-tag, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 887e069 090/145: make files an optional parameter, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7726b6c 097/145: silence some checkdoc warnings, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f701269 118/145: require log-edit to avoid a warning, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 241a3b1 111/145: implement unregister, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 0071376 125/145: change the description in the header, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 622993f 117/145: remove vc-got-stage, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 49945a0 105/145: mark ignore and ignore-completion-table as NOT NEEDED, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 807ca5a 120/145: mark completely staged files as 'up-to-date, ELPA Syncer, 2021/09/09