GitEaseGitEase

// docs / architecture

Software Architecture

How GitEase is built: its layers, where each feature lives, how every Git command stays visible, and how plugins extend the app without linking the core.

Describes develop @ ae077207 · GitEase 0.9.0 · 2 Nov 2026

Introduction

GitEase is a Qt Quick desktop app on a C++ core. Views render the UI, controllers hold window state and report every Git command they run, and the Git layer wraps libgit2 on worker threads so the window stays responsive.

ReaderStart here
GitEase developersGoals, layers, feature map, and build
Plugin authorsPlugins section below, then the Plugin SDK
ℹ
Some extension points are declared in the SDK but not called yet. Tables mark items as Working, Partial, or Declared.

Goals and Constraints

GoalWhat it means
ResponsiveThe UI thread never waits on network or slow disk. Git work runs on worker threads.
Nothing hiddenEvery operation reports the matching git command. Preview and Recent Activity use the same GitCommandText function.
Safe with your repositoryOne job at a time per repository. Stale results after a switch are dropped. Plugins can block actions.
ExtensiblePlugins add pages, docks, diff viewers, menus, and hooks without changing the core.
Native and lightQt Quick and C++ on libgit2. No web runtime.
Windows and Linux firstSame code on both. macOS paths exist but are untested.

Constraints

  • Qt 6 (developed with 6.10), C++17, CMake 3.16+
  • Windows builds use MinGW 13.1 (64-bit); MSVC is not supported
  • libgit2 does not run .git/hooks — use workflow and rule plugins instead

System Context

GitEase works with local repositories, talks to Git hosts over HTTPS or SSH, loads plugins in-process, and checks gitease.app for updates and marketplace packages.

Developer
   │
   ▼
GitEase (Qt 6 · C++ · QML)
   ├── libgit2 ──────────── Local .git folders
   ├── HTTPS / SSH ──────── GitHub · GitLab · any host
   ├── Integrated terminal ─ System shell (one per repo)
   ├── In-process load ───── Installed plugins (.dll / .so / QML)
   ├── Marketplace HTTP ──── Plugin catalog and .gep download
   └── Update HTTPS ──────── gitease.app/api
External systemHow GitEase talks to it
Local repositorieslibgit2 in process (Src/Git)
Git hostslibgit2 over HTTPS token or SSH (libssh2 + key manager)
System shellOne ShellSession per open repository
Plugin marketplaceJSON over HTTP via NetworkManager
Update serviceJSON over HTTPS at gitease.app/api

Architecture Layers

Four layers. Each talks only downward. Plugins sit beside the core and reach it through IPluginContext.

QML views          Qml/View · Qml/Pages
       │
Controllers        Qml/Core/Controllers
       │
Git layer (C++)    Src/Git  ──► libgit2 · libssh2 · OpenSSL
       │
Terminal · Plugin manager · Utilities
       │
C++ and QML plugins
  • Views use GitEase's control style in Qml/Style
  • Controllers hold window state and feed command previews plus Recent Activity
  • Git layer wraps libgit2; slow work runs on GitAsyncRunner pools
  • Plugins load from app-data and a plugins folder next to the executable

Async model

A local pool handles reads, commits, stashes, and pull. A network pool handles clone, fetch, and push. Jobs for one repository run one at a time; results for a repository the user already left are reported as stale.

Command transparency

Forms call GitCommandText for the preview. Controllers call the same function after the operation. Recent Activity and the dialog preview therefore cannot disagree.

Feature Map

Where shipped product features live in the code (aligned with the desktop README).

FeaturePrimary UICore
Commit graph, search, filtersGraphViewPage, CommitGraphDockGitCommit, GitBranch
Local changes, hunk stagingCommittingPage, DiffViewGitStatus, GitStash
Image diffImageDiffHostIDiffPlugin viewer
Merge & conflictsConflictPopupGitMerge, GitConflict
Interactive rebaseRebaseDock, CommitPlanPopupGitRebase
Remotes, fetch, pull, pushRemoteView, RemoteOperationsSessionGitRemote, Auth/*
SSH keysSshSectionSshKeyManager
BundlesImportExportBundleDockGitBundle
TerminalTerminal.qmlTerminalManager
Command preview & activityRecentActivityDock, CommandPreviewGitCommandText
Themes, tours, notificationsStyle, Guide, NotificationCenterApp settings
Plugins & marketplacePluginsPagePluginManager

Plugin Architecture

The app owns the window. A plugin offers pages, docks, viewers, menu items, and hooks. It talks to the host only through a pure-virtual IPluginContext — never by linking the GitEase executable.

InterfaceUse it toStatus
IPagePluginAdd a page to the navigation railWorking
IDockPluginAdd a utility-panel dockWorking
IDiffPluginDiff viewer or syntax colorizerWorking
IContextMenuPluginCommit / branch / file menusWorking
IToolbarPluginMain toolbar buttonsWorking
IWorkflowPluginAllow or block pre-commit / pre-push / pre-mergeWorking
IConflictAssistPluginSuggest and apply conflict resolutionsWorking
IRulePluginCheck an action before it runsPartial
ICommandPluginRegister commandsPartial
IAuthPluginCustom remote authenticationDeclared
IServicePluginBackground serviceDeclared

Step-by-step packaging and samples: Plugin SDK docs.

Build and Layout

GitEase/
├── Src/             C++ core: Git layer, plugin manager, terminal, utilities
├── Qml/             UI: pages, views, popups, controllers and style
├── Res/             Fonts, icons and images
├── Ext/             Prebuilt libgit2, libssh2, OpenSSL, zlib, libarchive
├── SamplePlugins/   Example plugins and the C++ plugin template
├── Scripts/         Build, packaging and plugin tools
├── installer/       Inno Setup script for Windows
└── tests/           Qt Test unit tests (ctest)

Windows: Scripts/Build-Release.ps1. Linux: Scripts/build.sh. Requirements and options are in the desktop README.

Full Document

This page is the website overview. The complete software architecture document — including Mermaid sequence diagrams for commit, push, conflicts, startup, and every extension interface — lives with the product sources: