docs/static/reference/php/Dagger/GitRef.html
class GitRef extends AbstractObject implements IdAble
A git ref (tag, branch, or commit).
| | $lastQuery | | from AbstractObject |
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
from AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from AbstractObject
string
commit()
The resolved commit id at this ref.
commonAncestor(GitRef $other)
Find the best common ancestor between this ref and another ref.
id()
A unique identifier for this GitRef.
string
ref()
The resolved ref name at this ref.
tree(bool|null $discardGitDir = false, int|null $depth = 1, bool|null $includeTags = false)
The filesystem tree at this ref.
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain) No description
| AbstractClient | $client | | | QueryBuilderChain | $queryBuilderChain | |
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)No description
| QueryBuilder | $leafQueryBuilder | | | string | $leafKey | |
| null|array|string|int|float|bool | |
string commit()The resolved commit id at this ref.
| string | |
GitRef commonAncestor(GitRef $other)Find the best common ancestor between this ref and another ref.
| GitRef | $other | |
| GitRef | |
AbstractId id()A unique identifier for this GitRef.
| AbstractId | |
string ref()The resolved ref name at this ref.
| string | |
Directory tree(bool|null $discardGitDir = false, int|null $depth = 1, bool|null $includeTags = false)The filesystem tree at this ref.
| bool|null | $discardGitDir | | | int|null | $depth | | | bool|null | $includeTags | |
| Directory | |
Generated by Doctum, a API Documentation generator and fork of Sami.