GitRef
class GitRef extends AbstractObject implements IdAble, Node
A git ref (tag, branch, or commit).
Properties
| $lastQuery | from AbstractObject |
Methods
from
AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from
AbstractObject
asWorkspace(string|null $cwd = '/')
Creates a synthetic workspace from this git ref.
string
commit()
The resolved commit id at this ref.
string
ref()
The resolved ref name at this ref.
Details
in
AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
in
AbstractObject at line 19
protected null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
at line 19
Workspace
asWorkspace(string|null $cwd = '/')
Creates a synthetic workspace from this git ref.
at line 31
string
commit()
The resolved commit id at this ref.
at line 40
GitRef
commonAncestor(GitRef $other)
Find the best common ancestor between this ref and another ref.
at line 50
Id
id()
A unique identifier for this GitRef.
at line 59
string
ref()
The resolved ref name at this ref.
at line 68
Directory
tree(bool|null $discardGitDir = false, int|null $depth = 1, bool|null $includeTags = false)
The filesystem tree at this ref.