Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

10
  • 3
    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) Commented Nov 10, 2014 at 21:31
  • 2
    Ah ha, you mention just that (it's the hexification or the 20 bytes, great!) Commented Nov 10, 2014 at 21:43
  • 15
    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). Commented Aug 12, 2015 at 17:59
  • 2
    @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.
    – qbolec
    Commented Jul 19, 2016 at 11:05
  • 1
    @user2284570 re: content size - it's the size of the entire tree object itself.
    – Ben
    Commented Aug 23, 2018 at 2:31