[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 8ee9f79 04/16: Avoid descending into .git/ when
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint 8ee9f79 04/16: Avoid descending into .git/ when looking for .el files |
Date: |
Mon, 30 Nov 2020 05:00:57 -0500 (EST) |
branch: externals/relint
commit 8ee9f79d4b8cd5b27df1bb6342f4962db1d0930e
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Avoid descending into .git/ when looking for .el files
This saves quite some time when scanning directories containing lots
of git trees.
---
relint.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/relint.el b/relint.el
index 3b40d12..ee670b7 100644
--- a/relint.el
+++ b/relint.el
@@ -2328,7 +2328,9 @@ TARGET is the file or directory to use for a repeated
run."
(defun relint--tree-files (dir)
(directory-files-recursively
- dir (rx bos (not (any ".")) (* anything) ".el" eos)))
+ dir (rx bos (not (any ".")) (* anything) ".el" eos) nil
+ ;; Save time by not pointlessly descending into huge .git directories.
+ (lambda (s) (not (string-suffix-p "/.git" s)))))
(defun relint--scan-buffer (buffer)
"Scan BUFFER; return (COMPLAINTS . SUPPRESSED) where
- [elpa] externals/relint 4b78e14 09/16: Add table of contents to README, and some advice, (continued)
- [elpa] externals/relint 4b78e14 09/16: Add table of contents to README, and some advice, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint c792bde 15/16: Perform Emacs version check at compile time, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint c8fd922 12/16: Minor looking-at optimisation, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint 5720e12 07/16: Scan regexp arguments to functions in s.el, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint f0241bc 13/16: Increment version to 1.19, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint 9173a91 05/16: Add progress indicator for interactive relint-directory, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint 5572c57 14/16: Emacs 26 compatibility: `directory-files-recursively`, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint 1c66438 06/16: Add string-search and string-replace to the list of pure functions, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint b572fcd 02/16: Run automatic tests on Emacs 27.1, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint 14a5135 03/16: Minor README correction, Mattias Engdegård, 2020/11/30
- [elpa] externals/relint 8ee9f79 04/16: Avoid descending into .git/ when looking for .el files,
Mattias Engdegård <=