2 ms·
> Wait? What? So everything is just text files? Absolutely not. cat-file reformats the data, but even if you ignore that loose objects are compressed on-disk,
by masklinn 4y ago
> Wait? What? So everything is just text files?
Absolutely not. cat-file reformats the data, but even if you ignore that loose objects are compressed on-disk, and that they contain a nul byte, a tree object is binary data. Amongst other things it’s the first time you’d encounter an oid as raw bytes instead of hex (though that’s also the case in pack files).
> Filter branch
When even git’s own documentation tells you that something is riddled with footguns, you probably want to avoid it. If they suffice, prefer git-filter-repo or BFG, they’re much more reliable and easier to use.