(workspaceDir: string)
| 102 | } |
| 103 | |
| 104 | async function writeWorkspaceGitExcludeFile(workspaceDir: string): Promise<void> { |
| 105 | const infoDir = path.join(workspaceDir, ".git", "info"); |
| 106 | await fs.mkdir(infoDir, { recursive: true }); |
| 107 | const excludePath = path.join(infoDir, "exclude"); |
| 108 | const content = [ |
| 109 | "# Holaboss workspace-local excludes", |
| 110 | ...WORKSPACE_GIT_EXCLUDE_PATTERNS, |
| 111 | "", |
| 112 | ].join("\n"); |
| 113 | await fs.writeFile(excludePath, content, "utf8"); |
| 114 | } |
| 115 | |
| 116 | async function hasStagedChanges(workspaceDir: string): Promise<boolean> { |
| 117 | const { stdout } = await runGit(workspaceDir, ["diff", "--cached", "--name-only"]); |
no outgoing calls
no test coverage detected