Skip to content

Add context-graph.exclude to filter refs from the graph - #5

Merged
Djuuu merged 5 commits into
mainfrom
feature/exclude-refs
Aug 15, 2026
Merged

Djuuu merged 5 commits into
mainfrom
feature/exclude-refs

Conversation

@Djuuu

@Djuuu Djuuu commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add context-graph.exclude, a git config multivar of fully-qualified ref glob patterns
    (refs/heads/..., refs/tags/..., refs/remotes/...) to always exclude from the graph.

    Injected as git log --exclude=<pattern> ahead of every --all/--branches/--tags/
    --remotes/--glob option, stripping the namespace prefix as each of those requires.
    Patterns not scoped to a specific namespace (e.g. using **) apply across all of them.

  • --config-reset now also reports and clears context-graph.exclude, matching its
    documented "remove all context-graph configuration" behavior (it previously only handled
    branch context and the first-parent preference).

  • Document both context-graph.exclude and context-graph.first-parent in a new
    CONFIGURATION section (--usage and README).

  • Minor test cleanup: drop --pretty=oneline / git config --local where redundant.

@Djuuu
Djuuu merged commit 387908c into main Aug 15, 2026
2 checks passed
@Djuuu
Djuuu deleted the feature/exclude-refs branch August 15, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant