Skip to content

Conversation

@sourcefrog
Copy link
Collaborator

Fixes #13

It seems the previous behavior was intentional by @sunjay in b26abee but IMO it's a more difficult API. Parsing an empty string to an empty vec seems natural in Rust.

Copy link
Contributor

@sunjay sunjay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember why I made that decision 6 years ago and this seems reasonable, so approved. I don't maintain this crate, so you'll have to get the actual owner to merge and release your change.

@sourcefrog sourcefrog merged commit 8ef098f into gitpatch-rs:main Dec 8, 2025
18 checks passed
@sourcefrog sourcefrog deleted the 13-empty-input branch December 10, 2025 15:58
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.

Empty or all-blank string should not be an error?

3 participants