-
Notifications
You must be signed in to change notification settings - Fork 381
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
view.rs: clarify some internal function docstrings #2962
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Mostly, I was a bit confused that some of these functions return a `TrackingRefPair` but don't seem to take into account whether the remote branch is being tracked or not.
As discussed in jj-vcs#2962 (comment), the previous name is confusing since the struct is used for pairs where the remote branch is not tracked by the local branch.
As discussed in jj-vcs#2962 (comment), the previous name is confusing since the struct is used for pairs where the remote branch is not tracked by the local branch.
@@ -212,8 +214,13 @@ impl View { | |||
} | |||
} | |||
|
|||
/// Iterates local/remote branch `(name, remote_ref)`s of the specified | |||
/// remote in lexicographical order. | |||
/// Iterates over `(name, {local_ref, remote_ref})`s for every branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: local_ref
-> local_target
/// Iterates local/remote branch `(name, remote_ref)`s of the specified | ||
/// remote, matching the given branch name pattern. Entries are sorted by | ||
/// `name`. | ||
/// Iterates over `(name, TrackingRefPair {local_ref, remote_ref})`s for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
As discussed in jj-vcs#2962 (comment), the previous name is confusing since the struct is used for pairs where the remote branch is not tracked by the local branch.
As discussed in #2962 (comment), the previous name is confusing since the struct is used for pairs where the remote branch is not tracked by the local branch.
Mostly, I was a bit confused that some of these functions return a
TrackingRefPair
but don't seem to take into account whether the remote branch is being tracked or not.This fell out of #2935.
Please let me know if the new version is not clearer, or especially if I misunderstood.