Repository navigation
Add Extensions, starting with Git Repositories - #5620
Merged
Marc-André Moreau (mamoreau-devolutions) merged 3 commits intoOct 28, 2026
Merged
Marc-André Moreau (mamoreau-devolutions) merged 3 commits into
Marc-André Moreau (mamoreau-devolutions) merged 3 commits into
Conversation
First phase of the experimental Git Repositories page: a UI-free UniGetUI.GitRepositories project that the page will build on. - Check fetches a clone's remote once, with prune, and reports whether it is up to date, behind, ahead, diverged, has changed tracked files, is on another branch or detached, or has no remote. - The default branch is the remote's HEAD, else main, else master. - Update only ever fast-forwards (merge --ff-only) a clean clone that is on its default branch; anything else is refused and reported. - Worktrees are listed with what makes each safe to remove: local changes, commits not on the remote default branch, a deleted upstream, locks and missing folders. Removal and prune refuse the main and locked worktrees, and need force for unsaved work. - Git never prompts on a terminal, both pipes are drained, and every command has a time limit. Tests run against real temporary repositories with an isolated git configuration. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings gains an Extensions section for optional tools that go beyond package management. Each extension is off by default, turns on and off without a restart, and is described once in AppExtensions, from which the Extensions list and each extension's settings page are built. Git Repositories is the first extension. It keeps main git clones on their default branch up to date, with the engine added in the previous commit: - A sidebar page lists the clones with their state, checks and fast-forwards them one by one or all at once, and can check on a schedule and update after checking. A badge counts the clones behind. - One Add repository button takes a clone, a worktree (its main clone is added) or a folder whose clones are found two levels down. - A resizable panel under the clones shows the selected clone's worktrees or branches. Worktrees can be opened, removed (with their branch) and pruned; branches can be deleted one by one, and those merged into the default branch all at once. - The worktree list shows before git status has run in each worktree, and branch details come from one for-each-ref call, so clones with dozens of agent worktrees load in about a second. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rename UniGetUI.GitRepositories and its tests to UniGetUI.Extensions.GitRepositories(.Tests), with matching namespaces and an UniGetUI.Extensions solution folder, the way package managers live in UniGetUI.PackageEngine.Managers.*. Later extensions get their own UniGetUI.Extensions.* projects next to it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Marc-André Moreau (mamoreau-devolutions)
merged commit Oct 28, 2026
d468451
into
main
6 checks passed
Marc-André Moreau (mamoreau-devolutions)
deleted the
claude/unigetui-git-update-manager-1bb612
branch
October 28, 2026 17:18
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Many of us keep main clones on
mainormasterand rungit fetch && git pullin a terminal tab per repository, all day, while AI agents work in worktrees. This adds a place in UniGetUI for that kind of work, separate from package management.Extensions. Settings gains an Extensions section, set up like Package managers: a list of optional tools, each with an on/off switch, a status badge and its own settings page. Every extension is off by default and turns on or off without a restart. Each one is described once in
AppExtensions, and the Extensions list, its settings page and settings search are built from that list.Git Repositories, the first extension, keeps main clones current on their default branch:
D:\devto add every clone up to two levels down. Each clone shows its branch, its worktree count and its state: up to date, behind, local changes, diverged, not on the default branch, and so on.origin/HEAD, thenmain, thenmaster. It can be overridden per clone.Engine.
UniGetUI.Extensions.GitRepositoriesruns thegitexecutable with prompts disabled, a timeout, and both output pipes drained. Status uses--no-optional-locksso it doesn't fight with an editor or an agent.Worktree loading was tuned on real clones with 18 and 38 agent worktrees. Branch details come from one
git for-each-refcall, and the list appears beforegit statushas run in each worktree. That cut the time before the list appears from about 5 s to about 1.3 s.Testing
dotnet formatchecks are clean.Not covered
AppExtensionswhen a second extension arrives.ToolbarSelectionStateTests.SinglePackageActionsNeedExactlyOnePackagefailed in two of the full runs (it passed in the others) with "the process cannot access the file 'catalog.json'". It's a Catalog Editor test that this PR doesn't touch.🤖 Generated with Claude Code