While working on gitmod, I noticed that the old root_tree is not being discarded when I stop using it. After tracking what was going on, I noticed that there's an object inside a tree that is not a blob or another tree. It's a commit object. This is from git's repo:
$ git ls-tree v2.28.0 | grep sha1col
160000 commit 855827c583bc30645ba427885caa40c5b81764d2 sha1collisiondetection
I need to add support for it so that it is managed correctly but I was wondering what it represents. Because I was trying to get information about the object and it's not in my repo:
$ git cat-file -p 855827c583bc30645ba427885caa40c5b81764d2
fatal: Not a valid object name 855827c583bc30645ba427885caa40c5b81764d2