class GitRef extends AbstractObject implements IdAble

A git ref (tag, branch, or commit).

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

string
commit()

The resolved commit id at this ref.

id()

A unique identifier for this GitRef.

tree(bool|null $discardGitDir = false)

The filesystem tree at this ref.

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
string commit()

The resolved commit id at this ref.

Return Value

string

at line 28
AbstractId id()

A unique identifier for this GitRef.

Return Value

AbstractId

at line 37
Directory tree(bool|null $discardGitDir = false)

The filesystem tree at this ref.

Parameters

bool|null $discardGitDir

Return Value

Directory