Add change 10 instructions

This commit is contained in:
David Doblas Jiménez 2024-02-28 19:50:41 +01:00
parent 46a20c8b60
commit af1928a360

12
how_to/Change_10.md Normal file
View File

@ -0,0 +1,12 @@
- write-tree: Hash the files
Instead of only printing the file name, let's put all files in the object
database. For now we'll print their OID and their name.
Notice that instead of getting one OID to represent a directory we now get a
separate OID for each file, which isn't very useful. Plus, note that the names
of the files aren't stored in the object database, they are just printed and
then the information is discarded.
So at this stage `write-tree` isn't useful (it just saves a bunch of files as
blobs) but the next change will fix it.