Download mods/diff/hooks/git/tiers/working-tree-basis/working-tree-basis.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/git/tiers/working-tree-basis/working-tree-basis.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/git/tiers/working-tree-basis/working-tree-basis.ts
-
curl -L -o working-tree-basis.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/git/tiers/working-tree-basis/working-tree-basis.ts
363 Bytes
| import type DiffDataOf from '../diff-data-of' | |
| /** | |
| * The basis of a plain working-tree diff: against HEAD, commits present, | |
| * every body current. | |
| */ | |
| export const WORKING_TREE_BASIS: DiffDataOf.DiffBasis = Object.freeze({ | |
| source: Object.freeze({ kind: 'working-tree', base: 'HEAD' }), | |
| baseRef: 'HEAD', | |
| isUnborn: false, | |
| stalePaths: Object.freeze([]), | |
| }) | |