Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sparse-checkout mode in Git add command to resolve is… #233048

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

GabrielPdaC
Copy link

This pull request addresses issue #213677 by adding support for sparse-checkout mode in VSCode's Git integration. The change ensures that when sparse-checkout is enabled, the git add command includes the --sparse flag, allowing files outside the sparse-checkout definition to be properly staged and committed.

How to test?
git clone --no-checkout https://myproject.git or init a new repo;
git sparse-checkout init;
create a new file;
try to stage file with add button on resource state from git extension in source control.

Result: The file should be added to index with no problem!

@GabrielPdaC
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants