jazzdotdev / jazzdotdev/jazz

Usage of diff and patch bindings

Open
#174 4 comments 0 reactions 0 assignees View on GitHub
component/bindings model/report progress/0.75 size/0.5 track/info-requested track/upstream value/0.75
Dominant language
Rust
Stars
147
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I have several problems with diff and patch bindings:

* when comparing with empty string it reports one context line (empty string itself), but it probably should consider empty string as no input or provide a way to pass nil as empty input,
* it is not possible to specify (fake) filenames used in place of question marks in --- ? and +++ ?
* no way to pass context lines number,
* diff triggers if one of files doesn't exist, it is possible to fake such file with `/dev/null`, but it is platform dependent,
* binary files trigger utf8 conversion error, the overall behavior with binary files is yet blurry and it may not be related to bindings

Haven't used patch, but it seems that it works with strings, but not files and possibly requires to split combined diff first.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.