Skip to content
CF / PROJECT 02

Branchlight

A quieter Git desktop client

A quieter Git desktop client for macOS, built around a clear commit graph, useful diffs and careful three-way conflict resolution.

Status
In daily use · v0.8.7 released
Started
2026
Stack
Rust · SwiftUI · AppKit · Git
01

Why

Why

Most of my Git time is not typing commands. It is understanding how branches relate, reviewing what changed, and resolving conflicts without losing either side's work.

Branchlight is a client for exactly those three jobs, with one priority order: Git correctness and a useful GUI first, lightness second.

02

Problem

Question
  1. 01

    Conflict markers in a text editor make it easy to keep one side by accident and lose the other.

  2. 02

    Discarding changes, hard resets and force pushes are one click away from losing work, with no way back.

  3. 03

    Comparing a task branch against its target mixes in local edits and changes that only exist on the target.

  4. 04

    A GUI that reimplements Git can quietly disagree with Git about what the repository looks like.

03

System

System

Branchlight keeps Git operations in one Rust engine and lets each platform own its own interface.

  1. L1Native macOS client

    SwiftUI and AppKit for Changes, History and the merge editor. Editor selection, layout and undo belong to macOS; no embedded web editor stands in for it.

  2. L2C ABI bridge

    branchlight-native owns repository sessions, validates each request once and returns the same JSON models as the original Tauri host. Reads share access; mutations are exclusive.

  3. L3Git engine

    branchlight-core runs official Git with explicit argument arrays and no shell interpolation, and holds the review rules shared by every client.

04

Implementation

Implementation
  • Three-way merge beside the code

    Index stages 1/2/3 are read with git ls-files --unmerged and git cat-file. The result starts from Base only inside unresolved ranges; arrows accept a side, × dismisses it, and undo restores text and decisions together.

  • Save is not resolve

    Saving checks a fingerprint of the file and its unmerged index entries, and rejects stale writes. "Mark resolved" (git add) is a separate, explicit step.

  • Hunk and line staging

    Stage, unstage or discard per hunk or per line, built on Git's own diff and git apply. Discards are backed up in the Git directory first and can be restored.

  • A history you can read

    A compact commit table with a lane graph, virtual scrolling and automatic paging. Filters run in git log over the whole repository, and interactive rebase works by drag or keyboard.

  • Distribution

    A version tag builds, signs, notarizes and publishes the DMG in GitHub Actions; installs update in place through Sparkle.

05

Decisions

Decision-Making
  1. D1

    Official Git as the backend

    Branchlight drives the real git binary instead of a reimplementation, so it never disagrees with the command line about the repository.

  2. D2

    Destructive actions need explicit consent

    Force push only goes out as --force-with-lease pinned to the last fetched value, hard reset refuses to overwrite untracked files, and worktree removal never forces.

  3. D3

    No credentials of its own

    Remote operations use the existing Git credential helpers and SSH agents. Branchlight has no sign-in flow and stores no passwords.

  4. D4

    Native on the Mac

    From 0.8.0 the macOS app moved from the Tauri/React client to SwiftUI and AppKit on the same engine. Windows keeps the Tauri client and is paused for now.

06

Result

Results
Release
v0.8.7
Platform
macOS · Apple silicon
Engine
Rust + official Git

It is in a daily-use phase: I do all my own Git work in it — rebase, cherry-pick, large diffs, conflicts, worktrees — and fix the friction I hit in small batches.

Windows support is paused; the Tauri client remains on the same engine.