Skip to content

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.

TypeScript
419 B
Raw Blame
import Limits from '../../../limits'
import type Types from '../../types'

/**
 * Whether a diff has more files than get per-file rows: past
 * MAX_FILES_FOR_DETAILS only its totals are kept.
 *
 * @param result the parsed diff
 * @returns whether rows, hunks and the untracked probe are skipped
 */
export const isPastDetails = (result: Types.NumstatResult) =>
  result.stats.filesCount > Limits.MAX_FILES_FOR_DETAILS