MCPcopy Create free account
hub / github.com/freecodexyz/free-code / generateTmuxSessionName

Function generateTmuxSessionName

src/utils/worktree.ts:171–178  ·  view source on GitHub ↗
(
  repoPath: string,
  branch: string,
)

Source from the content-addressed store, hash-verified

169}
170
171export function generateTmuxSessionName(
172 repoPath: string,
173 branch: string,
174): string {
175 const repoName = basename(repoPath)
176 const combined = `${repoName}_${branch}`
177 return combined.replace(/[/.]/g, '_')
178}
179
180type WorktreeCreateResult =
181 | {

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected