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 / git / tiers / is-past-details / is-past-details.ts
12 lines · 419 BRaw
1import Limits from '../../../limits'
2import type Types from '../../types'
3
4/**
5 * Whether a diff has more files than get per-file rows: past
6 * MAX_FILES_FOR_DETAILS only its totals are kept.
7 *
8 * @param result the parsed diff
9 * @returns whether rows, hunks and the untracked probe are skipped
10 */
11export const isPastDetails = (result: Types.NumstatResult) =>
12 result.stats.filesCount > Limits.MAX_FILES_FOR_DETAILS