DonJayamanne / gitHistoryVSCode

Git History for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
MIT License
944 stars 150 forks source link

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

Open mattjwarren opened 1 year ago

mattjwarren commented 1 year ago

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

caneserr commented 3 months ago

same here