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 / backend-of / git-host-of.ts
13 lines · 528 BRaw
1import Scripted from '../scripted'
2import { GIT_WORKTREE } from './git-worktree.js'
3import { recordingBackendHostOf } from './recording-backend-host-of.js'
4import type { RecordingBackendHost } from './recording-backend-host.js'
5
6/**
7 * A recording backend host inside a git working tree: `rev-parse` answers
8 * the three lines, nothing else is scripted.
9 *
10 * @returns the host and the programs it ran
11 */
12export const gitHostOf = (): RecordingBackendHost =>
13 recordingBackendHostOf({ 'rev-parse': Scripted.ok(GIT_WORKTREE) })