for people who live in git

Every commit, in its place.

Lattice is a small terminal tool for walking git history. It draws the commit graph as quiet, navigable lanes — branches, merges and rebased work — and lets you move through all of it from the keyboard.

install — one line
~/repo * main
$ lattice log --all --graph
main feat/cache fix/windowing HEAD
11 commits · 3 branches · 2 merges · 4 ms
g walk  ·  s search  ·  q quit

the graph

Reads like a map, not a dump.

One row per branch. Lanes that never cross. Merge commits where the paths meet. What you see is the shape of the repository — nothing added, nothing smoothed over.

main feat/cache fix/windowing HEAD init feat: pagination merge: fix/windowing chore: release 1.8.3 cache: invalidate fix: windowing off-by-one
a twelve-week window from a service repository · main, feat/cache and fix/windowing

why lattice

Quiet by default.

It is a pager with a point of view: no daemon to babysit, no colour to configure, no opinion you have to escape.

01

Walk, don't read

lattice log opens the graph where your log used to be. The arrows move the cursor, o opens a commit, z reframes the context. You never leave the terminal, and you never scroll a wall of asterisks.

02

Lanes that never cross

Each branch keeps its own row. Merges are where lanes meet, and rebased work is shown as the path it was, not the path it is now. The picture of your history is a map, not an ornament.

03

Follow the line

lattice blame traces a change through merges, cherry-picks and renames, and shows where it landed. A fix backported to two release branches is seen in both places.

04

Zero ceremony

One static binary, about four megabytes. No daemon, no index, no network. It reads the repository read-only and leaves the working tree exactly as it found it.

the keys

A small, learnable set.

Everything lives on the home row. If you need to remap something, the bindings sit in ~/.config/lattice/lattice.toml.

  • hl or ←→

    move the cursor along the graph

  • jk

    jump to the previous or next branch row

  • o

    open the selected commit in the pager

  • z

    reframe: fit all, zoom in, zoom out

  • b

    jump to a branch by name

  • s

    search subjects, hashes and authors

  • f

    follow the selected change to the tip

  • q

    quit, returning to your shell

install

One line, one binary.

Signed for macOS, verified on Linux. It reads a repository read-only and leaves nothing behind.

macos · homebrew $brew install lattice
linux · macos $curl -fsSL https://lattice.sh/install | sh