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 / pane-view / row-of.ts
22 lines · 506 BRaw
1import type Git from '../../../hooks/git'
2import { TRACKED } from './tracked.js'
3
4/**
5 * A file row at a path: two added, one removed, tracked and in session,
6 * unless the overrides say otherwise.
7 *
8 * @param path the row's path
9 * @param overrides fields that differ from the ordinary row
10 * @returns the row
11 */
12export const rowOf = (
13 path: string,
14 overrides: Partial<Git.FileStat> = {},
15): Git.FileStat => ({
16 path,
17 renamedFrom: null,
18 added: 2,
19 removed: 1,
20 ...TRACKED,
21 ...overrides,
22})