stateOf
import { stateKey } from "#codebase/tcmts/cli/diff"; import type { NameState } from "#codebase/tcmts/cli/diff"; import type { NameRow } from "#codebase/tcmts/store"; export function stateOf(rows: NameRow[]): NameState { const s: NameState = new Map(); for (const r of rows) s.set(stateKey(r.path, r.kind), (s.get(stateKey(r.path, r.kind)) ?? new Set()).add(r.hash)); return s; }
uses
used by
- tcmts.cli.changes.branchChanges
- tcmts.cli.changes.branchList
- tcmts.cli.changes.stateAt
- tcmts.cli.contributions.viewContribution
- tcmts.cli.main.diff
- tcmts.cli.main.stateAt
- tcmts.cli.merge.mergeBaseState
- tcmts.cli.merge.mergeBranch
- tcmts.cli.merge.planMerge
- tcmts.cli.merge.revertEntry
- tcmts.cli.merge.settleMerge
- tcmts.cli.releases.apiReport
- tcmts.cli.releases.contributionsIn
- tcmts.cli.sync.pull
- tcmts.cli.sync.push
- tcmts.share.NameTrees
- tcmts.share.contributionChanges