-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Task
Fix the diff parsing logic in src/multi_step_integration.rs to correctly handle standard git diff formats.
Requirements
- Accurately extract file paths from git diff headers by recognizing the
diff --git a/path b/pathformat - Strip the conventional
a/andb/prefixes that git uses - Handle special cases:
- Newly added files (old path is
/dev/null) - Deleted files (new path is
/dev/null) - Renamed files (capture both paths)
- Newly added files (old path is
- Correct line counting:
- Lines beginning with
+are additions - Lines beginning with
-are removals - Exclude metadata lines (
+++or---)
- Lines beginning with
- Infer file structure from available context when headers are missing
- Only default to "unknown" filename after exhausting all parsing strategies
Success Criteria
- Parser successfully extracts correct file paths from standard git diff output
- Line counts accurately reflect additions and removals
- No more "unknown" filename issues in debug output
- File paths appear as actual repository paths, not generic placeholders
Part of #81
Metadata
Metadata
Assignees
Labels
No labels