Repository navigation
Add context-graph.exclude to filter refs from the graph - #5
Merged
Merged
Conversation
- `git-context-graph`: `--pretty=oneline` - `git config`: `--local`
Fully-qualified ref glob patterns to always exclude from the graph.
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.
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/--globoption, 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-resetnow also reports and clearscontext-graph.exclude, matching itsdocumented "remove all context-graph configuration" behavior (it previously only handled
branch context and the first-parent preference).
Document both
context-graph.excludeandcontext-graph.first-parentin a newCONFIGURATIONsection (--usageand README).Minor test cleanup: drop
--pretty=oneline/git config --localwhere redundant.