GitRepository
class GitRepository extends AbstractObject implements IdAble, Node
A git repository.
Properties
| $lastQuery | from AbstractObject |
Methods
No description
Creates a synthetic workspace from this git repository.
branches that match any of the given glob patterns.
tags that match any of the given glob patterns.
Returns the changeset of uncommitted changes in the git repository.
The URL of the git repository.
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 repository.
at line 31
GitRef
branch(string $name)
Returns details of a branch.
at line 41
array
branches(array|null $patterns = null)
branches that match any of the given glob patterns.
at line 53
GitCommit
commit(string $id)
Returns details of a commit.
at line 63
GitRef
head()
Returns details for HEAD.
at line 72
Id
id()
A unique identifier for this GitRepository.
at line 83
GitRef
latest()
Return the latest stable release tag, falling back to HEAD when no release exists.
Release selection accepts an optional "v" prefix, incomplete versions, and zero-padded numeric components. This operation is pinned.
at line 92
GitRef
ref(string $name)
Returns details of a ref.
at line 102
GitRef
tag(string $name)
Returns details of a tag.
at line 112
array
tags(array|null $patterns = null)
tags that match any of the given glob patterns.
at line 124
Changeset
uncommitted()
Returns the changeset of uncommitted changes in the git repository.
at line 133
string
url()
The URL of the git repository.