]> git.ipfire.org Git - thirdparty/git.git/commit
merge-ort: step 2 of tree writing -- function to create tree object
authorElijah Newren <newren@gmail.com>
Sun, 13 Dec 2020 08:04:21 +0000 (08:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Dec 2020 22:18:20 +0000 (14:18 -0800)
commitee4012dcf962fa26ae83d1e7ff28263b9d2d1452
tree147848b32042261efb860e016cf16477500c70c3
parenta9945bba600914bc8feb7aa52dce7b8e41237649
merge-ort: step 2 of tree writing -- function to create tree object

Create a new function, write_tree(), which will take a list of
basenames, modes, and oids for a single directory and create a tree
object in the object-store.  We do not yet have just basenames, modes,
and oids for just a single directory (we have a mixture of entries from
all directory levels in the hierarchy) so we still die() before the
current call to write_tree(), but the next patch will rectify that.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c