NameChange

tcmts.cli.changes.NameChange · #3q25y3ha · type

A name that changed, as tcm diff sorts it: its code edited, re-hashed only because what it uses changed (because), added, removed, renamed (from), given another name (existing), or conflicted. old and hash are the hashes before and after, oldUri and uri their documents (a file has none: it opens as a page).

export interface NameChange {
  change: "edited" | "propagated" | "added" | "removed" | "renamed" | "aliased" | "conflicted";
  path: string;
  hash?: string;
  old?: string;
  uri?: string;
  oldUri?: string;
  from?: string;
  because?: string[];
  existing?: string[];
  hashes?: string[];
}

used by