yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.37k stars 1.1k forks source link

[Feature] Support resolving lockfile merge conflicts from `git revert` #6260

Open merceyz opened 5 months ago

merceyz commented 5 months ago

Describe the user story

Yarn currently supports resolving merge conflicts in the lockfile caused by git merge, git rebase, and git cherry-pick but not git revert.

Describe the solution you'd like

Support resolving merge conflicts from git revert by checking git rev-parse REVERT_HEAD HEAD here: https://github.com/yarnpkg/berry/blob/580f593db4ab592bfff2d9fd5c5613c29c6fee2b/packages/plugin-essentials/sources/commands/install.ts#L392-L406