[latex3-commits] [l3svn] 08/09: exclude hidden files by default
noreply at latex-project.org
noreply at latex-project.org
Sun Jun 25 09:30:28 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit cfbf93353c1b8188d3aaf1b208fc776bb03482c1
Author: XZS <d.f.fischer at web.de>
Date: Mon May 22 14:36:57 2017 +0200
exclude hidden files by default
This emulates the behaviour of most globbing mechanisms: Hidden files,
which start with a dot, are only captured when the pattern also
explicitly states this dot. Most notably, this avoids duplication of any
.git directory, which may take up significant space even for small,
long-lived project. Its duplication may thus take long and is completely
unnecessary to build.
---
l3build/l3build.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 07fa76a..dd6da5a 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -583,7 +583,9 @@ function tree(path, glob)
for _, file in ipairs(filelist(dir, pattern)) do
local fullpath = path .. "/" .. file
if file ~= "." and file ~= ".." and
- fullpath ~= maindir .. "/build"
+ fullpath ~= maindir .. "/build" and
+ (string.sub(pattern, 1, 1) == "."
+ or string.sub(file, 1, 1) ~= ".")
then
local fulldir = dir .. "/" .. file
if critereon(fulldir) then
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list