Class: GitRef
A git ref (tag, branch, or commit).
Extends
BaseClient
Constructors
new GitRef()
new GitRef(
ctx
?,_id
?,_commit
?):GitRef
Constructor is used for internal usage only, do not create object from it.
Parameters
ctx?
Context
_id?
_commit?
string
Returns
Overrides
BaseClient.constructor
Methods
commit()
commit():
Promise
<string
>
The resolved commit id at this ref.
Returns
Promise
<string
>
id()
id():
Promise
<GitRefID
>
A unique identifier for this GitRef.
Returns
Promise
<GitRefID
>
tree()
tree(
opts
?):Directory
The filesystem tree at this ref.