gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
http://gitkraken.com/gitlens
Other
8.85k stars 1.2k forks source link

Git submodules: commits of submodule that is in subfolder #3362

Open SadScream opened 1 week ago

SadScream commented 1 week ago

Description

I want to add submodule to my project. I don't want this submodule to be in the root directory, so I want to place it to some sub-directory. When I do it, vs code recognizes submodule, but I cant see any extra info about submodule's repo on the 'COMMITS', 'BRANCHES', 'REMOTES' gitlens tabs

  1. Clone any repository
  2. Create folder inside this repository, for example 'submodule'
  3. cd submodule
  4. While in this folder, add a submodule to the project running git submodule add <submodule url>

Now you will probably see only commits related to the root project (in the COMMITS tab), but you can't see commits of submodule

GitLens Version

15.1.0

VS Code Version

Version: 1.90.2 (user setup) Commit: 5437499feb04f7a586f677b155b039bc2b3669eb Date: 2024-06-18T22:34:26.404Z Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.19045

Git Version

git version 2.45.2.windows.1

Logs, Screenshots, Screen Captures, etc

image