GitRef
class GitRef extends AbstractObject implements IdAble, Node
A git ref (tag, branch, or commit).
Properties
| $lastQuery | from AbstractObject |
Methods
No description
Creates a synthetic workspace from this git ref.
The resolved commit id at this ref.
The resolved commit SHA at this ref.
Commits reachable from this ref, newest first, starting with the commit this ref resolves to.
The resolved name of this ref.
The resolved ref name at this ref.
The commit this ref resolves to.
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
string
commitSHA()
The resolved commit SHA at this ref.
at line 49
GitRef
commonAncestor(GitRef $other)
Find the best common ancestor between this ref and another ref.
at line 59
Id
id()
A unique identifier for this GitRef.
at line 68
array
log(int|null $limit = 10, array|null $paths = null, GitRef|null $base = null)
Commits reachable from this ref, newest first, starting with the commit this ref resolves to.
at line 86
string
name()
The resolved name of this ref.
at line 95
string
ref()
The resolved ref name at this ref.
at line 104
GitCommit
targetCommit()
The commit this ref resolves to.
at line 113
Directory
tree(bool|null $discardGitDir = false, int|null $depth = 1, bool|null $includeTags = false)
The filesystem tree at this ref.