daff icon indicating copy to clipboard operation
daff copied to clipboard

No diff shown if cell content deleted and column renamed

Open Godsmith opened this issue 5 years ago • 1 comments

a.csv

a,b,c
1,2,this is not visible

b.csv

a,b,d
1,2,

Expected: "this is not visible" is shown Actual: image

Godsmith avatar Mar 29 '19 14:03 Godsmith

Oh interesting. There's something buggy there all right. The diff isn't super wrong - you can indeed get from a.csv to b.csv by deleting column c and adding column d without any content - but it smells bad. You can force a better diff with daff --all a.csv b.csv but that won't help for real tables. Thanks for reporting the problem @Godsmith.

paulfitz avatar Mar 30 '19 02:03 paulfitz