Skip to content

Support only showing diff of lines within the selected range in Line History view #704

@cideM

Description

@cideM

Here's what I would assume most people expect from line history:

  • Select a range of lines.
  • Activate line history.
  • See how those lines changed, and only those lines

I hovered over every icon but I can't figure out how to achieve the same result in line history. Here's what happens in GitLens.

  • Select a range of lines
  • Click a commit in the line history view
  • Get a diff which includes all changes from that commit pertaining to that file. Which is useless, since what's the point of line history if it shows me the same as file history.

Select lines
Screen Shot 2019-04-10 at 09 40 36

This is what I get after clicking a commit in line history explorer
Screen Shot 2019-04-10 at 09 41 58

Here's the result of wrapping git log -L in like a 5 line vimscript function

Screen Shot 2019-04-10 at 09 44 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWant community input and/or pull requestneeds-championNeeds a community champion to move this forward

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions