type
Get the type of the object pointed by the entry.
Signature
ts
class TreeEntry {
type(): ObjectType | null;
}Returns
- null | ObjectType
The type of the object pointed by the entry.
-
Any: Any kind of git object
-Commit: An object which corresponds to a git commit
-Tree: An object which corresponds to a git tree
-Blob: An object which corresponds to a git blob
-Tag: An object which corresponds to a git tag
