跳转到内容

Scenario Playground

此内容尚不支持你的语言。

Try any scenario’s commit graph right here in the browser — no npm install needed. The graphs are built from real hashes captured at build time: every short hash you see is exactly the one you’ll get locally when you call spinUpScenario('name').

演练场

从列表中选择一个场景,查看它的提交图。

将鼠标悬停在提交节点上可查看详情,点击可复制短哈希。也可以通过 URL 中的 #scenario=<name> 直接链接到指定场景。

How it works

Each scenario’s setup() function is run at build time in a temporary git repository. The resulting git log --all --date-order output is captured as structured data and stored in scenarios.json alongside the existing ASCII graph. The playground reads that data in the browser and renders the DAG with a lane-layout algorithm.

Tips

  • Search the sidebar to filter by name, kind, or tag.
  • Kind pills narrow the list to a single scenario family.
  • Hover a commit node to see its full hash, refs, subject, author, and parents.
  • Click a commit node to copy the full hash to your clipboard.
  • Deep-link to any scenario with #scenario=<name> in the URL — bookmarkable and shareable.

See also