Skip to content

fix: Show colorized unified diff in script pull before overwrite prompt#215

Open
sveneberth wants to merge 1 commit intoviur-framework:mainfrom
sveneberth:fix/script-pull-diff
Open

fix: Show colorized unified diff in script pull before overwrite prompt#215
sveneberth wants to merge 1 commit intoviur-framework:mainfrom
sveneberth:fix/script-pull-diff

Conversation

@sveneberth
Copy link
Copy Markdown
Member

@sveneberth sveneberth commented May 5, 2026

Replace hash-based comparison with difflib to fix a bug where differing line endings (\n vs \r\n) between local and server caused every script to appear changed. splitlines() normalizes line endings before comparing. Additionally, a colored server→local diff is now shown before asking the user whether to overwrite.

…ompt

Replace hash-based comparison with difflib to fix a bug where differing
line endings (\n vs \r\n) between local and server caused every script to
appear changed. splitlines() normalizes line endings before comparing.
Additionally, a colored server→local diff is now shown before asking the
user whether to overwrite.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sveneberth sveneberth added bug Something isn't working Priority: High After critical issues are fixed, these should be dealt with before any further issues. labels May 5, 2026
@sveneberth sveneberth force-pushed the fix/script-pull-diff branch from 0effc0f to a8814a2 Compare May 5, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Priority: High After critical issues are fixed, these should be dealt with before any further issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant