Repository navigation
Changes view is single-checkout: nested git checkouts (vendored repos) are invisible #12992
sirwolfgang
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What I'm asking for
The changes view inspects exactly one checkout: the repository that contains the session's working directory. That default is right, but it makes an entire class of workspace invisible.
In our workspace, several subdirectories are independent git checkouts that the root repository ignores (not submodules). Their changes never appear anywhere:
diffhas nothing to show andls-files --others --exclude-standardexcludes them.changes-reviewtab: also nothing.workspace-changesrecords nested repositories as gitlinks, so a tracked submodule would at least show a commit move; an ignored checkout is simply absent.VS Code avoids this by scanning the workspace for
.gitand registering one SCM provider per nested repository. The closest equivalent here is a checkout row in the changes tab.Smallest shape I would propose
.gitinternals and the configured worktree pool).localDiffagainst that checkout instead of the session cwd.workspace-changesout of scope for this proposal; the changes tab is where we review while the agent works.Reproduction
With a session in
/tmp/x/rootand the forge bundle enabled, the changes view lists nothing even thoughvendored/has a new file.Related discussions
Also noticed while testing the review loop (separate; no action needed here)
Happy to test a patch against our layout, or to prototype the enumeration as a plugin if that is the preferred route.
All reactions