Skip to content

Git - fix create worktree regression - #283780

Merged
Ladislau Szomoru (lszomoru) merged 1 commit into
mainfrom
lszomoru/environmental-python
Dec 16, 2025
Merged

Ladislau Szomoru (lszomoru) merged 1 commit into
mainfrom
lszomoru/environmental-python

Conversation

@lszomoru

Copy link
Copy Markdown
Member

Fixes #283700

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes a regression in Git worktree creation by removing complex automatic branch name generation logic and simplifying the API. The changes move the responsibility of path construction entirely to the caller, resulting in more predictable and maintainable code.

Key changes:

  • Removed automatic branch name generation using @joaomoreno/unique-names-generator package and related configuration
  • Simplified createWorktree method to only generate paths when caller provides branch but no path
  • Removed getRandomBranchName method and all associated random name generation logic

@lszomoru
Ladislau Szomoru (lszomoru) deleted the lszomoru/environmental-python branch December 16, 2025 11:26
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jan 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Worktrees no longer using branch name in version 1.107.0

3 participants