Update Git to use the new Patcher API.
Review Request #14225 — Created Nov. 4, 2024 and updated — Latest diff uploaded
Git's patching functionality has been moved to the new Patcher API,
giving us a more future-proof, standardized way of patching, reverting,
and committing.Patching is still implemented as individual
git apply -3
commands, one
per patch, rather than bulk-patching viagit am
. This is to avoid any
surprises with the patching process, since Git doesn't have any problems
applying patches to dirty trees.Unit tests were added for all the Git patching logic.
Unit tests pass.
Manually tested applying patches, committing, and reverting.