Download mods/diff/hooks/git/parse/is-whole-answer/is-whole-answer.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/git/parse/is-whole-answer/is-whole-answer.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/git/parse/is-whole-answer/is-whole-answer.ts
-
curl -L -o is-whole-answer.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/git/parse/is-whole-answer/is-whole-answer.ts
408 Bytes
| import type Types from '../../types' | |
| import { isWholeListing } from '../is-whole-listing' | |
| /** | |
| * Whether a `-z` git child both succeeded and answered a whole listing, | |
| * so its stdout may be parsed (isWholeListing). | |
| * | |
| * @param result what the child left | |
| * @returns whether to parse it | |
| */ | |
| export const isWholeAnswer = (result: Types.RunResult) => | |
| result.exitCode === 0 && isWholeListing(result.stdout) | |