Skip to content

Commit 2ea4bb4

Browse files
committed
feat(parse): Parse diff string to structured data
Implements a function to parse Git diff strings into a structured array of objects, including file changes, each hunk, and line types (additions, deletions, context). Includes a comprehensive test suite that covers various diff scenarios, such as single file changes, multiple file changes, file additions/deletions/renames, multiple hunks, and indicators for lines without trailing newlines.
1 parent 20d72cc commit 2ea4bb4

3 files changed

Lines changed: 713 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)