Doc system test

Git dirty check

Update checks git status first - dirty asks to proceed or fails headless; no git warns and runs; --force skips. Create never checks.

Meta block front matter of this doc
namespaces
  • durian.cloud/cyanprint/project-lifecycle
type
guard
stub
true
related

cyanprint update checks git status before it runs: uncommitted changes make an interactive run ask to proceed and a headless run fail; no git, or not a repo, prints a note and runs; --force skips the check. cyanprint create never checks. Untracked files count as dirty (git status --porcelain), so after a create the new, uncommitted template files make the next update ask. Details are in update.