#50121: build: pin diff.renames for deterministic patch export
Merged
Created: Mar 8, 2026, 1:33:01 AM
Merged: Mar 8, 2026, 5:39:21 PM
3 comments
Target: main
git format-patch honors diff.renames, which defaults to true (rename detection only). If a user has diff.renames=copies configured at the system or global level, exported patches may encode new files as copies of similar existing files, causing spurious diffs when e patches is run against patches exported on other machines.
This pins diff.renames=true in the export script to match git's default and ensure consistent output regardless of local git configuration.
Notes: none
Backports
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron