Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote reverse mapping #1763

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Remote reverse mapping #1763

merged 4 commits into from
Jan 13, 2025

Conversation

Byron
Copy link
Member

@Byron Byron commented Jan 12, 2025

Offer a function in gix::Repository to find the remote and the upstream tracking branch matching a local tracking branch.

This is done by trying all available refspecs and finding a remote which matches uniquely.

Tasks

@Byron Byron force-pushed the better-refspec-primitives branch from 022540d to a5236cf Compare January 13, 2025 09:23
Byron added 3 commits January 13, 2025 10:33
Note that this also reverses renames `MatchGroup::match_remotes()` to
`::match_lhs()` for consistency and to get away from the rather confusing
usage of words like local and remote.
…ranch()`

It's a way to learn about the Remote and upstream branch which would
match the given local tracking branch.
@Byron Byron force-pushed the better-refspec-primitives branch from a5236cf to da0e1c7 Compare January 13, 2025 09:33
@Byron Byron marked this pull request as ready for review January 13, 2025 09:48
@Byron Byron merged commit af8f201 into main Jan 13, 2025
20 checks passed
@Byron Byron deleted the better-refspec-primitives branch January 13, 2025 09:50
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