Skip to content

Reopen Add Option: "Git: Ignore new commits in submodules" #88715

@Fmstrat

Description

@Fmstrat

@joaomoreno This is a reopen of #78016

I'm sorry I didn't reply to that issue, for some reason GitHub never notified me of the response.

In any event, git does recognize the elements of removing submodules from the list of modified files. For instance, when looking at this in VSCode: https://github.com/microsoft/vscode/blob/master/extensions/git/src/git.ts#L1025

const args = ['diff', '--name-status', '-z', '--diff-filter=ADMR'];

Changing to the below ignores submodules

const args = ['diff', '--name-status', '-z', '--diff-filter=ADMR', '--ignore-submodules'];

While I don't believe the git team ever got around to documenting it, it is in this commit as of March of last year: git/git@b680ee1#diff-ab603fc6eadf618560316097522fe585

The request is to add an option in the settings to toggle that constant as to remove submodules from the listing of modified files in the tree.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygitGIT issuesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions