MCPcopy Create free account
hub / github.com/holaboss-ai/holaOS / writeWorkspaceGitExcludeFile

Function writeWorkspaceGitExcludeFile

apps/desktop/electron/workspace-git.ts:104–114  ·  view source on GitHub ↗
(workspaceDir: string)

Source from the content-addressed store, hash-verified

102}
103
104async 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
116async function hasStagedChanges(workspaceDir: string): Promise<boolean> {
117 const { stdout } = await runGit(workspaceDir, ["diff", "--cached", "--name-only"]);

Callers 1

ensureWorkspaceGitRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected