Expand description
Patch application and Git utilities for automated patch deployment.
Enums§
- Patch
Error - Errors returned by patch operations.
- Patch
Step - Steps reported via progress callback during
apply_patch_and_push.
Functions§
- apply_
patch_ and_ push - Apply a patch file, commit, and push to origin. Returns the branch name that was pushed.
- git_
version_ check - Check that the system git binary is >= 2.39.2 (CVE-2023-23946 patched).
- parse_
git_ version_ str - Parse a git version string like
"git version 2.39.2"or"git version 2.46.2 (Apple Git-139)". ReturnsErr(PatchError::GitTooOld)if version < 2.39.2 or if parsing fails. - slugify_
title - Slugify a PR title into a valid git branch name segment. Follows the algorithm from issue #1126.
- validate_
patch_ paths - Validate patch file path headers for traversal and symlink attacks.