Skip to content

Improve remote branch handling: focus on remote args, ignore stale tracking refs - #3

Merged
Djuuu merged 2 commits into
mainfrom
feature/remote-branch-handling
Jul 14, 2026
Merged

Djuuu merged 2 commits into
mainfrom
feature/remote-branch-handling

Conversation

@Djuuu

@Djuuu Djuuu commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

Two related improvements to how git-context-graph deals with remote branches:

  1. Focus on a remote when a remote branch is passed as argument.
    Passing a remote branch (e.g. origin/feature-x) now focuses that single remote: the graph shows the local counterpart (if any) plus the branch and default branch on that remote only.
    Useful when used as for Lazygit branch log command.

  2. Ignore stale tracking refs pointing to deleted remote branches.
    Fixes errors when a remote branch is deleted upstream but the local tracking config still declares it (branch.<name>.merge),

Djuuu added 2 commits July 14, 2026 15:59
Passing a remote branch (origin/feature-x) now focuses that one remote:
the graph shows the local counterpart (if any) and the branch/default on that remote only
@Djuuu
Djuuu force-pushed the feature/remote-branch-handling branch from 37aaea5 to 718c062 Compare July 14, 2026 13:59
@Djuuu
Djuuu merged commit fb9e384 into main Jul 14, 2026
2 checks passed
@Djuuu
Djuuu deleted the feature/remote-branch-handling branch July 14, 2026 14:03
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