type
Get the object type of object.
Signature
ts
class GitObject {
type(): ObjectType | null;
}Returns
- null | ObjectType
If the type is unknown, then
nullis returned.-
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
