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 / hooks / git / tiers / working-tree-basis / working-tree-basis.ts
12 lines · 363 BRaw
1import type DiffDataOf from '../diff-data-of'
2
3/**
4 * The basis of a plain working-tree diff: against HEAD, commits present,
5 * every body current.
6 */
7export const WORKING_TREE_BASIS: DiffDataOf.DiffBasis = Object.freeze({
8 source: Object.freeze({ kind: 'working-tree', base: 'HEAD' }),
9 baseRef: 'HEAD',
10 isUnborn: false,
11 stalePaths: Object.freeze([]),
12})