fix: update IgnoreFileRegexPattern to exclude .git directory

This commit is contained in:
Marvin Zhang
2025-12-03 15:45:18 +08:00
parent 034fbf1a84
commit aba7be3b86

View File

@@ -187,7 +187,7 @@ func GetFileHash(filePath string) (res string, err error) {
return hex.EncodeToString(hash.Sum(nil)), nil
}
const IgnoreFileRegexPattern = `(^node_modules|__pycache__)/|\.(tmp|temp|log|swp|swo|bak|orig|lock|pid|pyc|pyo)$`
const IgnoreFileRegexPattern = `(^\.git|^node_modules|__pycache__)/|\.(tmp|temp|log|swp|swo|bak|orig|lock|pid|pyc|pyo)$`
const scanDirectoryCacheTTL = 3 * time.Second
var (