onMirrorBranch

tcmts.cli.mirror.onMirrorBranch · #s5gbunjk · term · runs anywhere

Whether this process works on the branch a mirror's files are (a session on another doesn't touch them).

import type { CodebaseCore } from "#codebase/tcmts/cli/codebase";
import type { Mirror } from "#codebase/tcmts/cli/mirror";

export const onMirrorBranch = (cb: CodebaseCore, m: Mirror): boolean =>
  cb.store.branch().name === m.branch

uses

used by