viewsCurrent
Whether this branch's view files read as the branch has it now: it isn't only read (--branch, which writes
none), and they were brought up to date at its last change. One that's there can be read rather than rendered.
import type { CodebaseCore } from "#codebase/tcmts/cli/codebase"; import { viewsKey } from "#codebase/tcmts/cli/views"; export function viewsCurrent(cb: CodebaseCore): boolean { return ( cb.store.reading === undefined && cb.store.getSetting(viewsKey(cb)) === `${cb.store.branch().name}@${cb.store.logHead()}` ); }