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 / views / layout / segment / segment.ts
8 lines · 165 BRaw
1/**
2 * One stretch of a drawn diff row: its text and whether the word diff
3 * marks it as changed.
4 */
5export type Segment = {
6 text: string
7 isChanged: boolean
8}