Skip to content

fix(diff): compare normalized lines so CRLF-only differences are skipped (#11) - #12

Merged
sujal-maheshwari2004 merged 2 commits into
priompt:mainfrom
montionugera:fix/issue-11
Oct 18, 2026
Merged

sujal-maheshwari2004 merged 2 commits into
priompt:mainfrom
montionugera:fix/issue-11

Conversation

@montionugera

Copy link
Copy Markdown
Contributor

Closes #11

Summary

  • Normalizes line endings via splitLines before comparing prompt content in diffCmd (via changedLines), so files differing only by CRLF vs LF line endings (e.g. under core.autocrlf on Windows) are skipped instead of printed as no changes.
  • Adds TestChangedLines unit tests covering CRLF vs LF, mixed line endings, and content differences.

Verification

  • go test -v ./... passes.

@sujal-maheshwari2004
sujal-maheshwari2004 merged commit 91d19bb into priompt:main Oct 18, 2026
1 check passed
@sujal-maheshwari2004

Copy link
Copy Markdown
Contributor

Thanks! Verified: go test ./... passes. I merged main in, resolving against the new -fail-on/new verdict code and keeping your normalised comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diff reports CRLF-only differences as 'no changes' instead of skipping them

2 participants