Skip to content
Proyek

Tentang

Fast, GPU-accelerated cross-platform desktop Git client written in Rust with GPUI

Alat pengembangan

Cara angka ini diukur

70 bintang4 Fork +12 dalam 24 jam

Yang dapat Anda lakukan

  • Commit History & Graph - Visual commit graph, multi-commit selection, batch cherry-pick/revert, ref badges, search by message, author (author:), path (path:), branch (branch:), date (after:/before:), or code (code:/regex:)
  • Local Changes & Diff - Unified & split diffs with tree-sitter syntax highlighting, stage/unstage/discard by file, hunk, or individual lines, whole-file toggle, image diffs, in-diff search (Ctrl+F / F7)
  • 3-Way Conflict Resolver - Built-in conflict resolution for text, binary, rename, and add/delete conflicts with ours/theirs/base panels and continue/abort/skip controls
  • Branches, Worktrees & Stashes - Interactive rebase, fixups & autosquash, branch comparison (A...B and direct), merged branch cleanup, selective stashes, Git worktrees, tags, remotes, and submodules

Pertumbuhan bintang terukur

dalam 24 jam
+12
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
Mergeon Logo

Mergeon

A fast, GPU-accelerated desktop Git client written in Rust with GPUI.

License: GPL v3 CI Latest Release Rust Platform

Fast, native, keyboard-friendly Git workflows inspired by Fork — built for Linux, Windows, and macOS.


Mergeon commit graph and history view

Screenshots

Mergeon Local Changes and syntax-highlighted diff
Local Changes & Diff — Stage/unstage by file, hunk, or line with syntax-highlighted diffs
Mergeon Command Palette
Command Palette (Ctrl+Shift+P) — Jump to commands, @branches, #repos, and /files
Mergeon Live Canvas with Working Changes, Changed Files, and linked worktrees
Live Canvas — Interactive read-only branch canvas with corridor-routed curves, live Working Changes, scrollable Changed Files, and linked worktrees
Mergeon Light Theme
Light & Dark Themes — Crisp native GPU-rendered UI with visual branch graph

Features

Area Highlights
Commit History & Graph Visual commit graph, multi-commit selection, batch cherry-pick/revert, ref badges, search by message, author (author:), path (path:), branch (branch:), date (after:/before:), or code (code:/regex:)
Local Changes & Diff Unified & split diffs with tree-sitter syntax highlighting, stage/unstage/discard by file, hunk, or individual lines, whole-file toggle, image diffs, in-diff search (Ctrl+F / F7)
3-Way Conflict Resolver Built-in conflict resolution for text, binary, rename, and add/delete conflicts with ours/theirs/base panels and continue/abort/skip controls
Branches, Worktrees & Stashes Interactive rebase, fixups & autosquash, branch comparison (A...B and direct), merged branch cleanup, selective stashes, Git worktrees, tags, remotes, and submodules
Undo / Redo Per-repository undo/redo stack (Ctrl+Z / Ctrl+Y) covering commits, amends, merges, rebases, resets, branch/tag/stash ops, and file discards
GitHub Integration OAuth device flow sign-in, repository browser & cloning, Pull Requests & CI check status right in the sidebar and status bar
Live Canvas Read-only pan/zoom visual canvas (H Horizontal/Vertical, Z Zen Mode, F Scope & Depth filter) with corridor-routed branch curves, compact cards by default (optional commit details), draggable cards with elastic wires (R Tidy), live Working Changes hub (1–5 file satellites or automatic scrollable Changed Files card for 6+ files), linked worktree mini-hubs, and Diff Spotlight / floating Dock
Remote Watch (Tailscale) Pair Mergeon Desktop with a headless, strictly read-only mergeon-watch daemon on a remote Linux server/VPS over Tailscale — browse remote repos in the Home sidebar and monitor live commits, worktrees, and working changes over SSE
Workspace & Productivity Multi-repo tabs with named workspaces (repo groups), customizable keyboard shortcuts (Ctrl+/) with direct Fetch/Pull/Push and remembered dialog options, preview/pinned file tabs, file history (--follow) & navigable blame, command palette (Ctrl+Shift+P), light & dark themes, per-repo serialized Git mutation queue

Installation

Download prebuilt packages from GitHub Releases:

  • Linux (x86_64): .AppImage (supports signed auto-updates) and .deb (Debian/Ubuntu, glibc ≥ 2.35)
  • **Windows (x86_64) (Beta):** Mergeon-Setup-<version>.exe (per-user NSIS installer)
  • **macOS (Beta):** Mergeon-<version>-arm64-mac.zip (when built with macOS release enabled)
  • Remote Watch Daemon (Linux x86_64): mergeon-watch-<version>-linux-x86_64.tar.gz — standalone read-only headless daemon for watching repositories on a VPS over Tailscale (glibc ≥ 2.35)

Note: Linux packages are built and verified end-to-end on real targets. Windows and macOS builds are compiled in CI and currently considered beta until broader real-hardware testing is complete — bug reports are very welcome!

Live Canvas & Remote Watch

Local Live Canvas

Open any repository and switch to Live Canvas from the sidebar (or Command Palette Ctrl+Shift+P → Open Live Canvas) for a calm, read-only visual map of branches, merges, linked worktrees, and live uncommitted edits:

  • Navigation & Layout: Drag background to pan, scroll to zoom (35%–200%), 0 to recenter on HEAD, H to toggle Vertical/Horizontal, Z for Zen Mode, and F to filter branch scope, commit depth, worktrees, or toggle commit details.
  • Draggable & Elastic: Drag any commit card, Working Changes hub, file satellite, Changed Files header, or linked worktree card to rearrange your view, then press R (Tidy) to snap back to the clean corridor-routed layout.
  • Diff Spotlight: Click any changed file or commit to inspect syntax-highlighted unified/split diffs without leaving the canvas.

Remote Watch over Tailscale (mergeon-watch)

Watch repositories hosted on a remote Linux machine or VPS directly from Mergeon Desktop (100% read-only; mergeon-remote-host and mergeon-observe have zero write-operation dependencies):

# 1. Install the prebuilt Linux x86_64 daemon (from GitHub Releases)
curl -LO https://github.com/Spilveru/mergeon/releases/latest/download/mergeon-watch-<version>-linux-x86_64.tar.gz
tar -xzf mergeon-watch-<version>-linux-x86_64.tar.gz -C ~/.local/bin
# Or build from source:
# cd native && cargo build --release -p mergeon-remote-host --bin mergeon-watch

# 2. Install & start as a systemd user service bound to your Tailscale IP
mergeon-watch install-service --root ~/projects --port 7420

# 3. Generate a one-time pairing code & connect from Mergeon Desktop → Home → Remote Watch
mergeon-watch pair

Manage paired devices anytime with mergeon-watch status, mergeon-watch sessions, and mergeon-watch revoke <session-id>.

Building from Source

All source code lives in native/. Mergeon requires Rust stable (Edition 2024, see native/rust-toolchain.toml) and Git.

1. Install System Dependencies

Linux (Debian / Ubuntu)
sudo apt-get update && sudo apt-get install -y \
  build-essential clang cmake pkg-config git python3 \
  libasound2-dev libfontconfig-dev libfreetype-dev libssl-dev \
  libvulkan-dev libwayland-dev libx11-xcb-dev libxcb1-dev \
  libxkbcommon-dev libxkbcommon-x11-dev libzstd-dev

For running GUI tests on a headless machine, also install xvfb openbox mesa-vulkan-drivers.

Windows
  • Install Rustup with the MSVC toolchain (x86_64-pc-windows-msvc) and Visual Studio C++ Build Tools.
  • Optional: install LLVM (lld-link) for faster test linking, and NSIS 3.x to build installers.
macOS
  • Install Xcode Command Line Tools (including the Metal Toolchain for GPUI shaders) and Rustup.

2. Run & Test

git clone https://github.com/Spilveru/mergeon.git
cd mergeon/native

# Launch Mergeon
cargo run -p mergeon

# Run the full test suite (use tools/in-x.sh on headless Linux)
cargo test --workspace --locked

# Lint & formatting checks
cargo fmt --all --check
cargo clippy --workspace --all-targets --locked -- -D warnings

Architecture

Mergeon is structured as a layered Cargo workspace inside native/crates/:

mergeon (desktop binary, window shell, command palette, global shortcuts)
   └─ mergeon-view-{home, sidebar, toolbar, commits, changes, diff, canvas} + mergeon-ui
         └─ mergeon-app (AppModel GPUI entity, async flows, undo stack)
               └─ mergeon-backend (synchronous facade, OS keyring AES-256-GCM cipher, shell)
                     └─ mergeon-git-ops · mergeon-git-query · mergeon-runtime
                        mergeon-observe · mergeon-remote-{protocol, host, client}
                        mergeon-gitcmd · mergeon-model · mergeon-store
                        mergeon-github · mergeon-updater

Additional technical documentation lives in native/docs/ (app-layer.md, app-api.md, ui-components.md, packaging.md).

Vendored GPUI (native/vendor/gpui-pre)

Mergeon currently vendors a snapshot of gpui-pre 0.3.7 (Zed's GPUI, Apache-2.0) with 4 small UI fixes documented in native/vendor/gpui-pre/MERGEON.md. Those patches remain licensed under Apache-2.0 for upstream compatibility.

Configuration & Releases

  • GitHub OAuth: Uses GitHub's public OAuth Device Flow (no client secret). Override with MERGEON_GITHUB_CLIENT_ID if building a fork with your own OAuth/GitHub App (see .env.example).
  • Signed Auto-Updates: Releases built by .github/workflows/release.yml generate latest*.yml manifests signed with Ed25519 (latest*.yml.sig) via mergeon-manifest-check (MERGEON_UPDATE_SIGNING_KEY secret + MERGEON_UPDATE_PUBLIC_KEY variable). Packaged builds enforce HTTPS and verify both the Ed25519 manifest signature and the installer SHA-512 checksum.

Security

Please report security issues privately using GitHub Security Advisories. See SECURITY.md for details.

Contributing

Contributions, bug reports, and ideas are welcome! Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before opening a pull request.

License

Mergeon is licensed under the GNU General Public License v3.0 or later (LICENSE). Third-party licenses and attributions are listed in native/THIRD-PARTY-NOTICES.md.

Jelajahi proyek terkait

Memuat…