Update Git to use the new Patcher API.

Review Request #14225 — Created Nov. 4, 2024 and updated

Information

RBTools
release-5.x

Reviewers

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 via git 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.

Summary ID
Update Git to use the new Patcher API.
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 via `git 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.
1ae9552b0f1841147ebcbe5459dda32431399144
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. Ship It!
  2.