Vscode-gitlens: `open changes with previous revision` sometime didn't compare with previous commit

Created on 29 Nov 2020  路  3Comments  路  Source: eamodio/vscode-gitlens


  • GitLens Version: v2020.11.2903 and v11.0.6
  • Git Version: 2.29.2
  • VSCode Version:
    1.51.1
    e5a624b788d92b8d34d1392e4c4d9789406efe8f
    x64
  • OS Version: MacOS High Sierra version 10.13.6

Steps to Reproduce:
click revision navigation or click right click then select Open Changes then select open changes with previous revision

Here is result which didn't show expect commit compare
Screen Shot 2020-11-29 at 18 42 34
Screen Shot 2020-11-29 at 18 42 48

It should show the comparison between 25ae247 and 17fa8e5

needs more info bug

Most helpful comment

Can you please try out the latest insiders version? It has a possible fix for this issue 馃

You can install the insiders version from here.

All 3 comments

It might cause by firtst-parent flag

Few days ago, I was encountered There is no previous commit. When I use open changes with previous revision, I have located that It might be cause by old version of git (2.17.2) which return no commits, upgrade my git to 2.29.2, gitlen shows result, but something compare with wrong commits.

Possible solution: add rename: false at getPreviousUri to disable first-parent

I can make a PR for it

Can you please try out the latest insiders version? It has a possible fix for this issue 馃

You can install the insiders version from here.

Can you please try out the latest insiders version? It has a possible fix for this issue 馃

You can install the insiders version from here.

working perfect with the insiders version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

roblourens picture roblourens  路  4Comments

DavidBabel picture DavidBabel  路  3Comments

mindpivot picture mindpivot  路  4Comments

vgrafe picture vgrafe  路  3Comments

dwlsalmeida picture dwlsalmeida  路  3Comments