git as a place you leave open. One live frame over your repos: commit, push, sweep.
  • Zig 97.7%
  • Roff 1.5%
  • Nix 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-06 12:58:24 -05:00
data added ? key list, fitted hint strips, … on cut preview lines 2026-10-21 17:15:13 -04:00
docs nixos guide like butterview's 2026-10-23 13:47:15 -04:00
screenshot readme: new screenshot with the ? key list 2026-10-21 17:49:05 -04:00
src highlighted row on a grey band 2026-10-29 22:40:29 -04:00
.gitignore ghee-zig spike: repo list and commit flow in one frame 2026-10-02 16:34:47 -04:00
build.zig the repo is ghee: binary and links named to match 2026-10-20 09:15:09 -04:00
build.zig.zon the repo is ghee: binary and links named to match 2026-10-20 09:15:09 -04:00
flake.nix added flake for nix 2026-10-23 13:18:19 -04:00
LICENSE sweep, today, the rebase panel, and pushes that need a password 2026-10-20 09:05:13 -04:00
package.nix 0.1.4 2026-10-29 22:40:47 -04:00
README.md consistent readme footer 2026-11-06 12:58:24 -05:00

ghee

git, as a place you leave open. One list, one preview, one strip at the bottom, and you walk through it:

~/Code › ButterForge              a folder: repos, with what needs you first
   → mangowc-setup  dev ↑2        a repo: changed files, commits to push or
      → All files                 pull, branches, recent commits, every file

This is the Zig port of the bash ghee in butterscripts. It is one static binary that needs git at run time.

ghee in kitty on Butterbian: the folder view, with ? listing every key in the preview

Install

On Debian 13, from butterrepo:

# once: add the repo
curl -fsSL https://apt.justaguy.dev/key.asc | sudo gpg --dearmor -o /usr/share/keyrings/butterrepo.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/butterrepo.gpg] https://apt.justaguy.dev stable main" | sudo tee /etc/apt/sources.list.d/butterrepo.list
sudo apt update

sudo apt install ghee

It updates with the rest of your system. The package needs only git at run time; openssh-client is recommended for ssh remotes. The .deb is built in deb-builders from the release tag here.

NixOS

The repo includes a flake. docs/nixos.md adds it to your configuration, adapted from the butterview guide by ddubs.

Anywhere else, see Build.

Walking

  • Left / Right go out to the folder above (any folder, all the way up) and into a folder or repo. Folders of repos show how many need you.
  • Enter does the obvious thing: commits a repo with changes, opens one without, switches to a branch, edits a file.
  • Tab stages or unstages the highlighted file. Del discards it (asks first). Alt-e edits it.
  • Type to filter whatever list you are in. Esc clears the filter, steps back out to where you started, then quits.
  • ? lists every key in the preview. The strip at the bottom keeps to the ones for what is highlighted.

Committing

The commit message is typed in a box inside the frame, with the diff of what will be committed beside it. First line is the subject, Alt-Enter starts a body. A half-typed message is kept if you Esc out.

Commits, pushes, replays and pulls run in the background. The strip shows them going, a push is dev ››››››› origin/dev with the bright arrow moving, and the list stays yours meanwhile. When one finishes a repo off, the highlight moves on to the next repo that still needs you, unless you moved it yourself while it ran.

A refused push becomes an offer to replay your commits on top and push again. Alt-l pulls the highlighted or open repo. Alt-r fetches every repo in the folder; rows update as each remote answers.

Across the folder

  • Alt-s sweeps: the commit box opens for every repo with changes or unpushed commits, one after another, top of the list down. Esc skips a repo, Ctrl-C stops the sweep, and the strip says how many were swept.
  • Alt-t shows today: your commits since midnight, per repo, most first. Enter opens a repo from there.

Conflicts

When a replay stops on a conflict the panel opens in place of the repo page: the commit being replayed, and the files in conflict with their diff. Enter edits a file, and if the markers are gone when you come back it is marked resolved. m keeps your version, t takes the remote's, c continues, s skips the commit, a aborts the whole rebase, Esc leaves it for later. Opening the repo again brings the panel back. A rebase stopped by something else (git rebase by hand, say) is picked up the same way.

Passwords

A push or fetch that needs a password, passphrase or host key answer is run again in the terminal so you can type it, then the frame returns.

Live

The frame watches the disk with inotify: the worktree of every repo in the folder (minus what git ignores), each .git, and the folder itself. Save a file in Geany and the repo gains its ● within a quarter of a second; clone something into the folder and it appears. A folder of repos inside the one you are in is counted again when you come back to the window or press Ctrl-R. Nothing runs while nothing changes. Coming back to the window also refreshes everything, so what is shown is what is there.

Not here (yet)

Enter-drops-to-a-shell, and the standalone log, files and ssh pickers of the bash ghee. Long preview lines are cut, not wrapped.

Build

Zig 0.16 (mise use -g zig@0.16, or the tarball from ziglang.org). No other dependencies.

zig build -Doptimize=ReleaseSafe
./zig-out/bin/ghee                # the repo you are in, else $GHEE_BASE
./zig-out/bin/ghee ~/Code         # a folder of folders of repos
./zig-out/bin/ghee --version

The binary is a static x86-64 PIE with no libc dependency, so it runs on any Linux that has git: drop zig-out/bin/ghee into ~/.local/bin, or copy that one file to any other box.

The Debian package is built in deb-builders and installs the binary as ghee.

Testing without a terminal

ghee --size 120x30 --script $'dirty\x1b[C\rfix typo\r' /path/to/folder

feeds the bytes as if typed (\x1b[C is Right) and prints the last frame. Every flow above was exercised this way against throwaway repos with local bare remotes; the watcher and the animation were checked in a hidden terminal.

Support

Buy me a coffee

Connect

License

GPL-2.0. See LICENSE.


Made with 🧈 by JustAGuyLinux