DonJayamanne/gitHistoryVSCode

[BUG] view file history shows commits from before the file existed

mattjwarren opened this issue · 1 comments

When I r-click file, and select 'Git: View File History' the File History (filename) tab opens up, and it does show the history of the file, but it also goes further back in time to before the file existed and shows entries from unrelated files.

Steps To Reproduce

  1. Have a file created partway through the history of a repository
  2. r-click file, and select 'Git: View File History'
  3. it does show the history of the file, but it also goes further back in time to before the file existed and shows entries from unrelated files.

In the attached /uploaded image, you can see commits past 'Add HL_UT to jenkins conf' by Ben Rant. This was the commit that originated the file HL_UT.xml

However, you can see older entries also, for unrelated files (though in the same dir)

image

Expected Behavior

I only expect to see the commit history relating to the file selected.

Environment

  • OS: windows / wsl2 / ubuntu 20.04 (vscode launched from inside ubuntu instance)

  • VSCode version:
    matt@x:~$ code --version
    1.77.1
    b7886d7461186a5eac768481578c1d7ca80e2d21
    x64

  • Git History version:
    Last updated
    3/8/2023, 15:50:07
    Identifier
    donjayamanne.githistory

same here