If you look in this 2017 (
https://marc.info/?l=git&m=148787047422954) email from Linux, he discusses how git also encodes length. That would mean that you need a collision of the same length
and the right functionality, so you can't just append data.