3 lines
85 B

$ git diff --no-index --raw --abbrev=4 dir2 dir
:000000 100644 0000 0000 A dir/sub
$