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 / vs-spoofed.ts
10 lines · 337 BRaw
1import type Git from '../../../hooks/git'
2
3/**
4 * A branch comparison whose base branch name hides a right-to-left
5 * override, to prove the view strips format characters.
6 */
7export const VS_SPOOFED: Pick<Git.DiffData, 'mode' | 'source'> = {
8 mode: 'branch',
9 source: { kind: 'branch', baseBranch: 'ma\u202Eniam', baseRef: 'abc' },
10}