Replace custom merge driver with built-in merge=ours#146
Merged
Conversation
The custom merge driver required per-clone git config setup which was fragile. Git's built-in merge=ours driver works from .gitattributes alone with zero local configuration.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR removes the custom Sequence diagram for pixi.lock merge behavior before vs after using merge=ourssequenceDiagram
actor Developer
participant Git
participant Repo
rect rgb(240,240,240)
note over Developer,Git: Before PR (custom ourslock driver)
Developer->>Git: git merge feature
Git->>Repo: Read .gitattributes for pixi.lock
alt Local clone has custom ourslock configured
Git->>Git: Use merge driver ourslock
Git-->>Developer: pixi.lock from current branch kept
else No local driver configured (missing setup)
Git->>Git: Fallback to 3 way merge
Git-->>Developer: pixi.lock with merge conflicts
end
end
rect rgb(220,255,220)
note over Developer,Git: After PR (built in merge=ours)
Developer->>Git: git merge feature
Git->>Repo: Read .gitattributes for pixi.lock
Git->>Git: Apply built in merge=ours
Git-->>Developer: pixi.lock from current branch kept
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ourslockmerge driver with Git's built-inmerge=oursdriver in.gitattributessetup-git-merge-driverpixi task frompyproject.toml.claude/hooks/SessionStartThe custom driver required per-clone
git configsetup which was fragile — if missed, Git silently fell back to 3-way merge producing nonsensical conflicts inpixi.lock. The built-inmerge=oursworks from.gitattributesalone with zero local configuration.Test plan
git check-attr merge pixi.lockreturnsmerge: ourspixi task list | grep mergereturns nothingpixi run cipasses🤖 Generated with Claude Code
Summary by Sourcery
Replace the custom pixi.lock merge driver setup with Git's built-in merge=ours configuration and remove associated local setup hooks and tasks.
Build:
Chores: