From 35962bc062fb778dd4038c9d8d50ea7d601453e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 5 Nov 2020 21:52:31 +0800 Subject: =?UTF-8?q?=E6=A0=B9=E6=8D=AE=20.git/info/exclude=20=E6=8E=92?= =?UTF-8?q?=E9=99=A4=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/workspace/workspace.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'script-beta') diff --git a/script-beta/workspace/workspace.lua b/script-beta/workspace/workspace.lua index 8fc2d8d9..041379f7 100644 --- a/script-beta/workspace/workspace.lua +++ b/script-beta/workspace/workspace.lua @@ -94,6 +94,13 @@ function m.getNativeMatcher() pattern[#pattern+1] = line end end + buf = pub.awaitTask('loadFile', furi.encode(m.path .. '/.git/info/exclude')) + if buf then + for line in buf:gmatch '[^\r\n]+' do + log.info('Ignore by .git/info/exclude:', line) + pattern[#pattern+1] = line + end + end end -- config.workspace.library for path in pairs(config.config.workspace.library) do -- cgit v1.2.3