Skip to content

GitLens report X files changed when comparing working tree with a branch having identical files #1157

@Celeborn2BeAlive

Description

@Celeborn2BeAlive
  • GitLens Version: 11.0.0
  • Git Version: 2.29.2.windows.2
  • VSCode Version: 1.51.0
  • OS Version: Windows 10 build 19042.630

Steps to Reproduce:

  1. clone https://gitlab.com/c2ba/c2ba-toolbox
  2. git checkout -b _gitlens_compare_tmp1
  3. in VSCode: F1 -> GitLens: Compare working tree with and select origin/_gitlens_compare_tmp2

In the Search & Compare view you should see 5 files changes reported under Behind and Ahead (See (1) in screenshot below). If you click on any file under these lists, the diff view opens but reports no changes.

I often use this functionality when I rewrite my branches history to check that I keep the same files on the original and the rewritten branch. Fortunatly when I compare the 2 branches _gitlens_compare_tmp1 and _gitlens_compare_tmp2 under the Commits view I get No files changed under Ahead, so I can still compare my branches (see (2) in screenshot below). This is less convenient though because there is no Compare current branch with command that I could use with F1, so I need to use the UI.

image

PS: Thanks you for your work on this extension btw, release 11.0.0 is great !

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions