1 Commits
Author SHA1 Message Date
lukandAtomCode a9372a9742 新增 git_ignore_find2merge.js:Node 跨平台移植,与 seafile 版同套修复
- 忠实移植 .sh 语义:以 .gitignore 存在为候选判定(非 .git,部分仓库隐藏 .git
  保隐私)、深度 3 树搜索、跳过 node_modules 等目录、global + .gitignore.local.txt
  合并生成 .gitignore
- 同套修复:留空 globalPath 回退默认 URL;ask() 处理 stdin EOF 不挂起;
  默认 URL 用 fetch(30s 超时 + 重试一次),.sh 对 URL 走的是 curl 分支;
  根目录自身参与合并(.sh 的 find -name '[^.]*' 匹配不到根)
- 非 y 为 dry-run 并列出候选(.sh 直接静默退出)
- 验证:/tmp 夹具树非根目录产物与 .sh 逐字节一致(根目录差异为已知修正项);
  productX 全树 dry-run 候选 115 条与 .sh 等价 find 管道完全一致

Co-Authored-By: AtomCode (qwen3.8-27b) <[email protected]>
2026-10-07 10:40:17 +08:00