MarshallOfSound

#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

40-x-y
Merged
PR Number
#50127
Merged At
Mar 9, 2026, 5:36:45 AM
Released In
Not yet
Release Date
Not yet
41-x-y
Merged
PR Number
#50128
Merged At
Mar 9, 2026, 4:33:15 AM
Released In
Not yet
Release Date
Not yet

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