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.
Returns details for the latest semver tag.
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
GitRef
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 81
GitRef
latestVersion()
Returns details for the latest semver tag.
at line 90
GitRef
ref(string $name)
Returns details of a ref.
at line 100
GitRef
tag(string $name)
Returns details of a tag.
at line 110
array
tags(array|null $patterns = null)
tags that match any of the given glob patterns.
at line 122
Changeset
uncommitted()
Returns the changeset of uncommitted changes in the git repository.
at line 131
string
url()
The URL of the git repository.