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 / with-untracked / merged-result-of / merged-result-of.ts
13 lines · 455 BRaw
1import type Types from '../../../types'
2
3/**
4 * A tier's rows stamped with whether the untracked listing was withheld.
5 *
6 * @param result the rows and totals, untracked files merged in or not
7 * @param mark whether git did not give the listing whole
8 * @returns the merged result
9 */
10export const mergedResultOf = (
11 result: Types.NumstatResult,
12 mark: Pick<Types.MergedResult, 'isUntrackedWithheld'>,
13): Types.MergedResult => ({ ...result, ...mark })