Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Git - adopt fs-copyfile package#298773

Open
lszomoru wants to merge 1 commit intomainfrom
lszomoru/closed-narwhal
Open

Git - adopt fs-copyfile package#298773
lszomoru wants to merge 1 commit intomainfrom
lszomoru/closed-narwhal

Conversation

@lszomoru
Copy link
Member

@lszomoru lszomoru commented Mar 2, 2026

No description provided.

@lszomoru lszomoru requested review from Copilot and deepak1556 March 2, 2026 19:05
@lszomoru lszomoru enabled auto-merge (squash) March 2, 2026 19:05
@lszomoru lszomoru self-assigned this Mar 2, 2026
@vs-code-engineering vs-code-engineering bot added this to the March 2026 milestone Mar 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Git extension’s worktree “include files” copy implementation to optionally use the @vscode/fs-copyfile package on macOS for faster copy-on-write cloning.

Changes:

  • Add optional dependency on @vscode/fs-copyfile (darwin-only) in the Git extension.
  • Use dynamic import of @vscode/fs-copyfile on macOS and fall back to fs.promises.cp elsewhere.
  • Refactor worktree include-file selection/copy logic to switch between folder-level copies (fallback) and file-level copies (native path).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
extensions/git/src/repository.ts Adds macOS-native copy path via @vscode/fs-copyfile and refactors which paths are copied.
extensions/git/package.json Adds @vscode/fs-copyfile as an optional dependency.
extensions/git/package-lock.json Locks @vscode/fs-copyfile (darwin-only) and its optional dependency metadata.
Files not reviewed (1)
  • extensions/git/package-lock.json: Language not supported

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