MCPcopy Create free account
hub / github.com/danvk/webdiff / BaseFilePair

Interface BaseFilePair

ts/CodeDiffContainer.tsx:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import {DiffRange} from './codediff/codes';
7
8interface BaseFilePair {
9 idx: number;
10 /** file name of left side of diff */
11 a: string;
12 /** file name of right side of diff */
13 b: string;
14 type: 'add' | 'delete' | 'move' | 'change'; // XXX check "change"
15 /** Are there any changes to the file? Only set for "thick" diffs. */
16 no_changes?: boolean;
17 num_add: number | null;
18 num_delete: number | null;
19}
20
21interface TextFilePair extends BaseFilePair {
22 is_image_diff?: false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected