MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / cleanupWorktreeSetup

Method cleanupWorktreeSetup

internal/tui/app.go:1224–1231  ·  view source on GitHub ↗

cleanupWorktreeSetup cleans up a partially created worktree and branch.

()

Source from the content-addressed store, hash-verified

1222
1223// cleanupWorktreeSetup cleans up a partially created worktree and branch.
1224func (a *App) cleanupWorktreeSetup() {
1225 if a.pendingWorktreePath != "" {
1226 // Try to remove the worktree if it was created
1227 if git.IsWorktree(a.pendingWorktreePath) {
1228 _ = git.RemoveWorktree(a.baseDir, a.pendingWorktreePath)
1229 }
1230 }
1231}
1232
1233// finalizeStoryTiming records the duration of the currently tracked story.
1234func (a *App) finalizeStoryTiming() {

Callers 1

Calls 2

IsWorktreeFunction · 0.92
RemoveWorktreeFunction · 0.92

Tested by

no test coverage detected