// 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.
| Reader | Start here |
|---|---|
| GitEase developers | Goals, layers, feature map, and build |
| Plugin authors | Plugins section below, then the Plugin SDK |
Goals and Constraints
| Goal | What it means |
|---|---|
| Responsive | The UI thread never waits on network or slow disk. Git work runs on worker threads. |
| Nothing hidden | Every operation reports the matching git command. Preview and Recent Activity use the same GitCommandText function. |
| Safe with your repository | One job at a time per repository. Stale results after a switch are dropped. Plugins can block actions. |
| Extensible | Plugins add pages, docks, diff viewers, menus, and hooks without changing the core. |
| Native and light | Qt Quick and C++ on libgit2. No web runtime. |
| Windows and Linux first | Same 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 system | How GitEase talks to it |
|---|---|
| Local repositories | libgit2 in process (Src/Git) |
| Git hosts | libgit2 over HTTPS token or SSH (libssh2 + key manager) |
| System shell | One ShellSession per open repository |
| Plugin marketplace | JSON over HTTP via NetworkManager |
| Update service | JSON 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
GitAsyncRunnerpools - Plugins load from app-data and a
pluginsfolder 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).
| Feature | Primary UI | Core |
|---|---|---|
| Commit graph, search, filters | GraphViewPage, CommitGraphDock | GitCommit, GitBranch |
| Local changes, hunk staging | CommittingPage, DiffView | GitStatus, GitStash |
| Image diff | ImageDiffHost | IDiffPlugin viewer |
| Merge & conflicts | ConflictPopup | GitMerge, GitConflict |
| Interactive rebase | RebaseDock, CommitPlanPopup | GitRebase |
| Remotes, fetch, pull, push | RemoteView, RemoteOperationsSession | GitRemote, Auth/* |
| SSH keys | SshSection | SshKeyManager |
| Bundles | ImportExportBundleDock | GitBundle |
| Terminal | Terminal.qml | TerminalManager |
| Command preview & activity | RecentActivityDock, CommandPreview | GitCommandText |
| Themes, tours, notifications | Style, Guide, NotificationCenter | App settings |
| Plugins & marketplace | PluginsPage | PluginManager |
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.
| Interface | Use it to | Status |
|---|---|---|
IPagePlugin | Add a page to the navigation rail | Working |
IDockPlugin | Add a utility-panel dock | Working |
IDiffPlugin | Diff viewer or syntax colorizer | Working |
IContextMenuPlugin | Commit / branch / file menus | Working |
IToolbarPlugin | Main toolbar buttons | Working |
IWorkflowPlugin | Allow or block pre-commit / pre-push / pre-merge | Working |
IConflictAssistPlugin | Suggest and apply conflict resolutions | Working |
IRulePlugin | Check an action before it runs | Partial |
ICommandPlugin | Register commands | Partial |
IAuthPlugin | Custom remote authentication | Declared |
IServicePlugin | Background service | Declared |
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:
- In this repo:
docs/SOFTWARE_ARCHITECTURE.md - Desktop sources: rasna-io/GitEase · docs/SOFTWARE_ARCHITECTURE.md