Sometimes, I open an IDE not because I need to write code,
but because I need its source control panel.

I want to see which files have changed, inspect a diff,
stage a few files, write a commit message, and push my changes.

That is all.

I do not necessarily need a language server, a debugger,
an extension marketplace, or an entire development environment
for that particular task.

It made me wonder:

Why does a good source control experience have to be attached to an IDE?

That question became GitPanel.

GitPanel running on Linux

The Problem Was Not Git

Git already works.

It is powerful, reliable, and available almost everywhere
I develop software.

I did not want to replace it.

What I wanted was a different way to interact with it.

There are times when a graphical representation of repository
changes is more convenient than repeatedly running commands
and reading terminal output.

A source control panel makes it easier to understand what
has changed, what is staged, and what will become part of
the next commit.

The problem was that the experience I wanted often came
bundled with a much larger application.

I wanted the panel without everything surrounding it.

Making Source Control Independent

The original idea behind GitPanel was quite small:

Take the essential source control workflow of an IDE
and make it an independent desktop application.

Not another IDE.

Not a replacement for Git.

Not necessarily a complete graphical Git client either.

Just a focused source control panel that could exist
alongside whatever tools I was already using.

I wanted to be able to open a terminal and run:

gitpanel 

Or point it directly to a repository:

gitpanel /path/to/repository 

And immediately have a graphical view of its current state.

The editor should not matter.

The programming language should not matter.

Even whether I am writing code should not matter.

A Git repository can contain API collections, documentation,
configuration files, designs, or personal notes.

Source control is useful beyond the boundaries of an IDE.

Choosing Rust and GTK4

I decided to build GitPanel using Rust and GTK4.

The architecture is intentionally straightforward:

  • Rust for application logic.
  • GTK4 for the native desktop interface.
  • System Git for repository operations.
  • Notify for filesystem monitoring.

There is no embedded browser engine.

There is no separate backend service.

There is no custom implementation of the Git protocol.

GitPanel delegates repository operations to the Git executable
already available on the system.

This allows the application to focus on presentation,
interaction, and application behavior rather than recreating
functionality that already exists.

It also keeps the number of direct Rust dependencies small.

At the initial release, GitPanel has only two:

gtk = { package = "gtk4", version = "0.11" } notify = "8.2" 

Of course, these libraries have their own transitive
dependencies, and GTK requires system libraries.

Having two direct dependencies does not mean the entire
application ecosystem consists of only two libraries.

But it does reflect the architectural direction I wanted:
reuse existing infrastructure instead of introducing
unnecessary layers.

A Simple Interface Is Not a Simple Application

The first idea was easy to describe.

Building it was another matter.

A source control panel may look like a list of files,
a commit message field, and a few buttons.

Underneath that interface, there are many states
that must be represented correctly.

A file can be modified, staged, deleted, renamed,
untracked, or involved in a merge conflict.

A file can also contain both staged and unstaged changes
at the same time.

A repository can have no initial commit.

HEAD can be detached.

An upstream branch may not exist.

The local branch can be ahead of the remote,
behind it, or both.

The application needs to understand those differences
before it can decide which actions should be available.

Something as simple as enabling a commit button
requires awareness of several repository conditions.

The interface should remain simple.

The underlying implementation cannot always be.

Listening to the Repository

One of the features I wanted from the beginning
was automatic refresh.

If I modify a file in another editor, GitPanel should
notice the change without requiring me to press
a refresh button.

That sounds straightforward until the repository
contains thousands of files, generated output,
dependency directories, and Git metadata.

A naive approach would be to monitor everything.

But monitoring everything introduces unnecessary work,
especially in directories such as:

  • node_modules
  • target
  • .git/objects
  • Build output directories

Instead, GitPanel uses selective filesystem monitoring.

It discovers relevant worktree directories, considers
Git ignore rules, and monitors selected Git metadata.

Filesystem events are filtered and grouped into
debounced refresh requests.

The purpose is not to react to every individual
filesystem event immediately.

The purpose is to keep the visible repository state
reasonably current without constantly asking Git
to inspect the entire repository.

This was one of the areas where the product's
lightweight philosophy influenced its implementation.

A small window should not quietly become an
unnecessarily expensive background process.

Git Subprocesses and Application Reliability

Using system Git does not eliminate complexity.

It changes where that complexity exists.

GitPanel communicates with Git through subprocesses.

A local status operation will usually finish quickly.

A remote operation might not.

Network conditions, credential helpers, repository hooks,
and external programs can affect how long an operation takes.

The graphical interface should remain responsive
while those operations execute.

GitPanel runs repository operations outside the
main GTK thread and uses a centralized execution layer.

The initial implementation includes:

  • Subprocess timeouts.
  • Linux process group isolation.
  • Bounded output capture.
  • Non-interactive terminal execution.
  • Error reporting.
  • Deferred window closure during active operations.

There is also a subtle question about what happens
when a user closes the application while Git is
still creating a commit or pushing changes.

Rather than immediately abandoning the active operation,
GitPanel defers normal window closure until the
operation finishes.

If the operation fails, the window remains available
so the user can inspect the error.

These details are not particularly visible in
a screenshot.

But they are part of what makes an application
usable rather than merely demonstrable.

Building the Diff Viewer

A source control panel would not be particularly useful
without a way to understand individual changes.

Git already provides unified diff output.

The question was how much of that output should be
presented directly to the user.

Raw Git output is valuable because it contains
technical information about the comparison.

However, when reviewing everyday changes,
I often want something visually simpler.

GitPanel provides two modes:

Clean diff

A presentation focused on additions, deletions,
context, and line numbers.

Raw diff

The Git-generated diff represented as text,
including its metadata and unified diff structure.

The clean view is useful for reading changes.

The raw view is useful when the underlying details
matter.

Rather than forcing one representation to satisfy
every use case, I decided to make both available.

The 362 KB Release

When I finished preparing the first Debian package,
I noticed its size.

362 KB.

That was the compressed distribution package
for GitPanel v0.1.0 on AMD64 Linux.

It contains the native executable, application icons,
desktop launcher, and package documentation.

The number surprised me.

Not because 362 KB is necessarily a technical record,
but because it reminded me how much functionality
can be built by using infrastructure that already
exists on a system.

GitPanel does not need to distribute a browser engine.

It does not need to ship its own Git implementation.

It uses GTK through shared system libraries.

The release executable is optimized, stripped,
and compressed into a Debian package.

There is an important distinction here.

A 362 KB download does not mean GitPanel consumes
362 KB of memory, nor does it mean the complete
runtime environment occupies only 362 KB.

GTK, Git, and other system dependencies still exist.

The package size describes the application being
distributed, not the entire cost of running it.

Still, keeping the application itself small
was one of the goals of this project.

Seeing that goal reflected in the first release
was satisfying.

Testing Beyond the Interface

As development progressed, the project reached
158 passing unit tests.

These tests cover different parts of the application,
including repository status parsing, configuration,
Git subprocess handling, filesystem monitoring logic,
diff processing, and window lifecycle decisions.

I also added an integration test suite designed
to exercise the Git backend using real temporary
repositories.

Remote operations can be tested using a local
bare Git repository instead of an internet-hosted
server.

The idea is to verify the application against actual
Git behavior rather than relying entirely on
simulated command output.

There is still more to test, especially across
different Linux distributions, desktop environments,
authentication configurations, and real-world repositories.

Passing automated tests is a useful milestone.

It is not the end of reliability work.

Using GitPanel Outside a Code Editor

One of the first practical uses I found for GitPanel
was alongside Bruno, an API client.

API collections can live inside Git repositories.

While working with an API collection, I may want to
review modifications, create commits, or synchronize
changes with a remote repository.

I do not necessarily want to open another IDE
just to perform those operations.

Instead, I can run Bruno and GitPanel side by side.

Bruno handles the API workflow.

GitPanel handles the repository workflow.

Neither application needs to know much about
the other.

This is perhaps the clearest example of what I
wanted GitPanel to become.

A small, independent tool that can be combined
with other tools.

It is not limited to a particular editor
or development environment.

It simply needs a Git repository.

Keeping the Product Small

There are many features I could add.

A commit graph.

Branch management.

Interactive rebase.

Stash management.

Hunk-level staging.

Hosting platform integrations.

Some of these might eventually make sense.

But adding features simply because other Git clients
have them would risk changing the identity
of the project.

GitPanel began as a source control panel,
not an attempt to reproduce every Git capability
inside a graphical application.

I want future additions to be motivated by
actual workflow problems.

A small tool does not have to become a large tool
to become more useful.

Sometimes, making an existing workflow more
reliable is more valuable than expanding
the number of available features.

What I Learned

Building GitPanel reinforced an idea that I find
increasingly interesting in software development:

Not every useful capability needs to belong
to a larger platform.

Sometimes, the value of a product comes from
separating an existing capability from the
environment that normally contains it.

GitPanel did not introduce a new version
control system.

It did not invent repository diffing,
staging, or commits.

Those capabilities already existed.

The contribution is a different composition
of those capabilities.

An independent interface.

A focused application.

A smaller distribution.

And the freedom to use it alongside
other tools.

Building software is not always about
creating something entirely new.

Sometimes, it is about recognizing that
something familiar could exist in a
more useful form.

The First Release

GitPanel v0.1.0 is now available as an
open-source Linux desktop application
under the MIT License.

The current Debian package can be downloaded
from GitHub Releases.

sudo apt install ./gitpanel_0.1.0_amd64.deb 

Once installed, open any existing Git repository:

gitpanel /path/to/repository 

This is the beginning of the project,
not its final form.

For now, I want to use it in my own daily workflow,
observe where it falls short, and let those
experiences guide its development.

I started with a question about why I needed
an entire IDE just to access its source control panel.

Now I have a source control panel of my own.

GitPanel — Source control, without the IDE.