Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend :Gbrowse to support line anchors for commits
If the first line of :Gbrowse range is inside commit's diff hunk, add 'diff' field to provider metadata with dictionary containing: * 'cursor': ' '/'-'/'+' when cursor is on the context/removed/added line * 'oldpath': path of the '---' side of the diff hunk (empty for additions) * 'newpath': path of the '+++' side of the diff hunk (empty for removals) * 'oldline': line number for the cursor position in the '---' side * 'newline': line number for the cursor position in the '+++' side When cursor is on the added or removed line, opposite side line number is taken as for the *next* context line (even if it doesn't exist). Exception is completely missing paths (additions or removals) - corresponding line number is always 0. This is the same behavior as in the diff hunk header.
- Loading branch information