spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / worktree / pinned-lead.ts
9 lines · 246 BRaw
1/**
2 * What leads every git child's argv once the linked worktree is pinned:
3 * its own git dir and its working tree.
4 */
5export const PINNED_LEAD: readonly string[] = [
6 'git',
7 '--git-dir=/main/.git/worktrees/wt',
8 '--work-tree=/main/wt',
9]