---
title: comark-git-graph, a commit graph from pasted git output
resources:
  - url: https://github.com/onmax/comark-ui/pull/418
    title: "PR #418"
---

Open `/git-graph` on the docs built from `feat/git-graph`; each board is one example tab, light then dark. New block, so there is no before.

## Merges, deleted branches and tags read from `git log --all`.

::compare
:::screenshot{src="https://drop.vitehub.dev/f/2ef7cd64-6eae-4cd9-940c-9d0795910309.png" alt="How 1.5 shipped, light" viewport="1280x900" title="Light"}
::::annotation{x=30.2 y=42.4 w=16.4 h=2.6 mark="none" side="top" at=55 to="38,42.4"}
feat/search was deleted; its name and #90 come from the merge message.
::::

::::annotation{x=1.4 y=33.9 w=2 h=2 mark="none" side="top" at=12 to="2.3,34.4"}
main already has the RC fix, from `git cherry`.
::::

The history example: two feature branches, a release cut, a hotfix ported back, and a footer fix.
:::

:::screenshot{src="https://drop.vitehub.dev/f/bc0d82ac-1244-4441-956b-14af2dfbde78.png" alt="How 1.5 shipped, dark" viewport="1280x900" title="Dark"}
The same graph in the dark scheme.
:::
::

## A backport reads across one row per fix.

::compare
:::screenshot{src="https://drop.vitehub.dev/f/471574a6-b0b8-47d9-ab12-3f8d65b638ce.png" alt="Backport the January fixes, light" viewport="1280x900" title="Light"}
::::annotation{x=3.8 y=48.7 w=5.2 h=3 mark="none" side="top" at=30 to="5,48.7"}
Each pick is numbered in the order the dry run picked it.
::::

::::annotation{x=12.7 y=74.8 w=53.1 h=3 mark="none" side="bottom" at=55 to="40,77.8"}
A conflict names its files, from git's own CONFLICT lines.
::::

The backport example, with `reverse` so the plan reads oldest first.
:::

:::screenshot{src="https://drop.vitehub.dev/f/409db98c-6259-4e6e-8f0e-43d994aacfa8.png" alt="Backport the January fixes, dark" viewport="1280x900" title="Dark"}
The same backport in the dark scheme.
:::
::

## A stack splits into one lane per branch, in one column.

::compare
:::screenshot{src="https://drop.vitehub.dev/f/dda75eec-1578-4145-909a-b4fabbe03c8b.png" alt="Sign-in stack, light" viewport="1280x900" title="Light"}
::::annotation{x=27 y=34.4 w=24.1 h=7.7 mark="none" side="bottom" at=60 to="51.1,38.2"}
Each PR's branch gets its own color where `--decorate` names its tip.
::::

The stack example, pasted from `git log --all`.
:::

:::screenshot{src="https://drop.vitehub.dev/f/a9f4e24d-9033-4b6d-a60d-614ab7abba37.png" alt="Sign-in stack, dark" viewport="1280x900" title="Dark"}
The same stack in the dark scheme.
:::
::
