Partial implementation of GitTreeEntry