class GitRepository extends AbstractObject implements IdAble, Node

A git repository.

Properties

$lastQuery from  AbstractObject

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

asWorkspace(string|null $cwd = '/')

Creates a synthetic workspace from this git repository.

branch(string $name)

Returns details of a branch.

array
branches(array|null $patterns = null)

branches that match any of the given glob patterns.

commit(string $id)

Returns details of a commit.

head()

Returns details for HEAD.

Id
id()

A unique identifier for this GitRepository.

latest()

Return the latest stable release tag, falling back to HEAD when no release exists.

ref(string $name)

Returns details of a ref.

tag(string $name)

Returns details of a tag.

array
tags(array|null $patterns = null)

tags that match any of the given glob patterns.

uncommitted()

Returns the changeset of uncommitted changes in the git repository.

string
url()

The URL of the git repository.

Details

in AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

AbstractClient $client
QueryBuilderChain $queryBuilderChain

in AbstractObject at line 19
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

QueryBuilder $leafQueryBuilder
string $leafKey

Return Value

null|array|string|int|float|bool

at line 19
Workspace asWorkspace(string|null $cwd = '/')

Creates a synthetic workspace from this git repository.

Parameters

string|null $cwd

Return Value

Workspace

at line 31
GitRef branch(string $name)

Returns details of a branch.

Parameters

string $name

Return Value

GitRef

at line 41
array branches(array|null $patterns = null)

branches that match any of the given glob patterns.

Parameters

array|null $patterns

Return Value

array

at line 53
GitCommit commit(string $id)

Returns details of a commit.

Parameters

string $id

Return Value

GitCommit

at line 63
GitRef head()

Returns details for HEAD.

Return Value

GitRef

at line 72
Id id()

A unique identifier for this GitRepository.

Return Value

Id

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.

Return Value

GitRef

at line 92
GitRef ref(string $name)

Returns details of a ref.

Parameters

string $name

Return Value

GitRef

at line 102
GitRef tag(string $name)

Returns details of a tag.

Parameters

string $name

Return Value

GitRef

at line 112
array tags(array|null $patterns = null)

tags that match any of the given glob patterns.

Parameters

array|null $patterns

Return Value

array

at line 124
Changeset uncommitted()

Returns the changeset of uncommitted changes in the git repository.

Return Value

Changeset

at line 133
string url()

The URL of the git repository.

Return Value

string