Commit d0a353d4 authored by Maina Ng'ang'a's avatar Maina Ng'ang'a
Browse files

feat: implement data extraction for patch revert

Add methods to find patch application commits and extract old values:
- tissue.Client.FindPatchApplicationCommit: searches commit history with pagination
- tissue.Client.GetCommitDiff: retrieves commit diffs
- patch.ExtractOldValues: parses diffs to extract previous attribute values

The revert command now successfully:
- Retrieves patch metadata
- Finds the commit that applied the patch
- Extracts old attribute values from git diff
- Logs all extracted data for verification

Next: Create revert patch operations and execute deletion/creation

Related: https://gitlab.com/gitlab-com/gl-infra/delivery/-/issues/21502
parent e0826a59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment