mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-07-01 12:50:38 +02:00
watcher: manually ignore .git changes
Some checks failed
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled
Some checks failed
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled
This commit is contained in:
parent
ae0466eedb
commit
9de370ae14
@ -125,9 +125,10 @@ async function startWatching(
|
|||||||
ctx,
|
ctx,
|
||||||
mut,
|
mut,
|
||||||
contentMap,
|
contentMap,
|
||||||
ignored: (path) => {
|
ignored: (fp) => {
|
||||||
if (gitIgnoredMatcher(path)) return true
|
const pathStr = toPosixPath(fp.toString())
|
||||||
const pathStr = path.toString()
|
if (pathStr.startsWith(".git/")) return true
|
||||||
|
if (gitIgnoredMatcher(pathStr)) return true
|
||||||
for (const pattern of cfg.configuration.ignorePatterns) {
|
for (const pattern of cfg.configuration.ignorePatterns) {
|
||||||
if (minimatch(pathStr, pattern)) {
|
if (minimatch(pathStr, pattern)) {
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user