Skip to main content
12 events
when toggle format what by license comment
Sep 30, 2021 at 14:57 comment added akostadinov @qbolec, if you change order of entries, then 2 identical trees will have different hash and appear as different trees.
Nov 17, 2018 at 15:32 comment added Armen Michaeli Shouldn't there be a \r\n or generally some form of newline after \0 in the tree specification you quoted? After all, in all examples, the stuff that comes after \0 comes on the succeeding line.
Aug 23, 2018 at 2:31 comment added Ben @user2284570 re: content size - it's the size of the entire tree object itself.
Jul 19, 2016 at 11:05 comment added qbolec @RossFeller could you point to some reference and explain what will go wrong otherwise? I was able to create two different tree objects which differ by the order of entries without any problems.
Jul 19, 2016 at 10:58 comment added qbolec if you plan to pass this object to git hash-object -t tree --stdin be sure to omit the tree 192\0 header, as otherwise you'll get fatal: corrupt tree file
Oct 20, 2015 at 21:39 comment added user2284570 @emiorhan : how to compute content size ? Or more precisely it’s the size of what ?
Aug 12, 2015 at 17:59 comment added Ross Feller If you're interested in creating the git tree object manually from its contents, it's important to note that the [Entries having references to other trees and blobs] needs to be sorted alphabetically by [file/folder name] (aka path).
Jun 10, 2015 at 18:41 comment added ThePyroEagle @AndyHayden It is a ZLib inflate if you want to decompress it, not a ZLib deflate (compress). I've managed to decompress entire repositories of Git objects but I'm not too sure whether the initial commit should reference a parent field.
Nov 10, 2014 at 21:43 comment added Andy Hayden Ah ha, you mention just that (it's the hexification or the 20 bytes, great!)
Nov 10, 2014 at 21:31 comment added Andy Hayden Could you post or describe your script to deflate these? (It seems to be different to other git objects, and not just a zlib deflate)
Feb 6, 2014 at 10:44 history edited lemiorhan CC BY-SA 3.0
added 152 characters in body
Feb 6, 2014 at 9:48 history answered lemiorhan CC BY-SA 3.0