feat: indicate history filters with no matching branch/tag - #2640
Closed
JC-Chung wants to merge 1 commit into
Closed
feat: indicate history filters with no matching branch/tag#2640JC-Chung wants to merge 1 commit into
JC-Chung wants to merge 1 commit into
Conversation
JC-Chung
force-pushed
the
feat/history-filter-unmatched-indicator
branch
from
August 20, 2026 09:42
aef26d2 to
588dd27
Compare
Collaborator
Contributor
Author
No problem, thanks for handling it! As long as it's easy to tell apart, that works for me. |
Collaborator
|
There was a little bug. I've force pushed a new commit that fixes it. |
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.

What
When a history filter (Include/Exclude on a local branch, remote branch, branch folder, or tag)
no longer has a matching branch/tag in the current repository state, its chip now shows a
distinct color instead of the usual green (Included) / red (Excluded).
Why
There was previously no way to tell whether a filter chip was still meaningfully applied.
A filter becomes unmatched when its target branch/tag is deleted/renamed outside of SourceGit
(e.g. another terminal,
fetch --prune). Users may still want to keep such rules in case abranch/tag with the same name reappears later, so unmatched filters are only flagged, never
auto-removed.
How
Models.HistoryFiltergains a runtime-onlyHasNoMatchflag (not persisted).ViewModels.RepositoryrecomputesHasNoMatchwhenever branches or tags are (re)loaded(
RefreshBranches/RefreshTags, including on first repository open) and whenever filtersthemselves change (
RefreshHistoryFilters), so the state is always accurate withoutrequiring the user to trigger a filter change first.
ModeandHasNoMatchvia a new multi-valueconverter.
Out of scope