Skip to content

refactor: replace inline diff logic with unified diff package#43

Merged
JaredHatfield merged 1 commit into
mainfrom
refactor/diff-output-to-unified
Jun 17, 2026
Merged

refactor: replace inline diff logic with unified diff package#43
JaredHatfield merged 1 commit into
mainfrom
refactor/diff-output-to-unified

Conversation

@JaredHatfield

Copy link
Copy Markdown
Member

Summary

Refactors the diff output logic to use a dedicated package, producing proper git-style unified diffs.

Changes

  • Move diff rendering to package
  • Output proper git-style unified diffs with hunk headers (e.g. ) and 3 lines of context
  • Support environment variable for disabling ANSI colors
  • Remove redundant diff code from package
  • Update to reflect unified diff format

- Move diff rendering to internal/diff package
- Output proper git-style unified diffs with hunk headers and context lines
- Support NO_COLOR environment variable for disabling ANSI colors
- Remove redundant diff code from output package
- Update VALIDATE.md docs to reflect unified diff format
@JaredHatfield JaredHatfield merged commit 37c6d6f into main Jun 17, 2026
4 checks passed
@JaredHatfield JaredHatfield deleted the refactor/diff-output-to-unified branch June 17, 2026 11:02
@github-project-automation github-project-automation Bot moved this from Todo to Done in UnitVectorY Labs Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant