Refusing to parse patches to binary files converted to text format, as there is no way to make sense of them
Dependencies
- [2]
5FI6SBEZRe-implement change printing and parsing - [3]
5NHRJ5PYCleaner handling of binary changes in the text format - [4]
T4VEIGHRchange parsing accounts for editors which trim trailing whitespace - [5]
YQMLICLWFix the hunk_roundtrip test, simplify code, improve test coverage, fix some edge cases.
Change contents
- replacement in libpijul/src/change/parse.rs at line 362
let (i, res) = fold_many0(complete(|i| parse_content_line(leading_char, i)),String::new,|s, r| s + r.as_str(),)(i)?;let (i, res) = if leading_char == '+' {fold_many1(complete(|i| parse_content_line(leading_char, i)),String::new,|s, r| s + r.as_str(),)(i)?} else {fold_many0(complete(|i| parse_content_line(leading_char, i)),String::new,|s, r| s + r.as_str(),)(i)?};