-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support line ranges in :Gbrowse for commits #36
Comments
The basic logic for figuring out the diff line can be found in If a range is given, I'd say just use the first line of it, regardless of where the cursor is. |
Anchor format is #diff-<MD5 of path>[L|R]<line number> With L line number is relative to the --- side, with R to the +++ side. Path of the +++ side used when it exists, otherwise path of the --- side (for removals). Closes tpope#36
Anchor format is: #diff-<MD5 of path>[[L|R]<start line number>[-[L|R]<end line number>]] With L line number is relative to the '---' side, and R to the '+++' side of the diff. Path of the '+++' side used when it exists, otherwise path of the '---' side (for removals). Closes tpope#36
Anchor format is: #diff-<MD5 of path>[[L|R]<start line number>[-[L|R]<end line number>]] With L line number is relative to the '---' side, and R to the '+++' side of the diff. Path of the '+++' side used when it exists, otherwise path of the '---' side (for removals). Closes tpope#36
hey @odnoletkov , it seems you implemented something like this in your fork. Are you planning to integrate it into the plugin? |
See #37 |
Note the linked Fugitive PR is a prerequisite and the current bottleneck. |
Anchor format is: #diff-<MD5 of path>[[L|R]<start line number>[-[L|R]<end line number>]] With L line number is relative to the '---' side, and R to the '+++' side of the diff. Path of the '+++' side used when it exists, otherwise path of the '---' side (for removals). Closes tpope#36
Anchor format is: #diff-<SHA256 of path>[[L|R]<start line number>[-[L|R]<end line number>]] With L line number is relative to the '---' side, and R to the '+++' side of the diff. Path of the '+++' side used when it exists, otherwise path of the '---' side (for removals). Closes tpope#36
Anchor format is: #diff-<SHA256 of path>[[L|R]<start line number>[-[L|R]<end line number>]] With L line number is relative to the '---' side, and R to the '+++' side of the diff. Path of the '+++' side used when it exists, otherwise path of the '---' side (for removals). Closes tpope#36
It would be great to have
:{range}Gbrowse
working for commit objects. Especially useful for doing code reviews.Sample URL:
Anchor format is:
with
L
line number is relative to the origin, withR
to the resultCouldn't find a way to select a range in this view, for selected range can either route to the first line or to the cursor position.
As far as I understand for
commit
fugitive currently doesn't provide path and line numbers, changing that should be most of the work.The text was updated successfully, but these errors were encountered: