sapling/eden/scm/lib/xdiff
Mateusz Kwapich 7ca58332d0 fix xdiff behaviour for empty files
Summary:
When comparing empty file with file with content our xdiff wrongly included
warning about missing newline, which also made the line counter in the hunk
header off-by-one.

Empty files are quite rare in our repos, that's why I discovered this bug only
now (it broke phabricator parsing of this single commit).

Reviewed By: markedson1024

Differential Revision: D21141341

fbshipit-source-id: 9d3e0d8a61ac4ee2cf27978b99b3a092259ee186
2020-04-21 05:30:21 -07:00
..
src fix xdiff behaviour for empty files 2020-04-21 05:30:21 -07:00
tests fix xdiff behaviour for empty files 2020-04-21 05:30:21 -07:00
Cargo.toml cargo_from_buck: get rid of signatures in generated Cargo.toml files 2020-03-20 08:56:11 -07:00