Interface: AbstractVcs<TCommitContext>
@pvm/vcs.AbstractVcs
Type parameters
Name |
---|
TCommitContext |
Hierarchy
FileCommitApi
<TCommitContext
>↳
AbstractVcs
Methods
addFiles
â–¸ addFiles(commitContext
, filePaths
): void
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
filePaths | string [] |
Returns
void
Inherited from
Defined in
packages/pvm-vcs/types/index.ts:50
addTag
â–¸ addTag(tag_name
, ref
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
tag_name | string |
ref | string |
Returns
Promise
<unknown
>
Defined in
packages/pvm-vcs/types/index.ts:61
appendFile
â–¸ appendFile(commitContext
, filePath
, content
): void
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
filePath | string |
content | string |
Returns
void
Inherited from
Defined in
packages/pvm-vcs/types/index.ts:51
beginCommit
â–¸ beginCommit(): TCommitContext
Returns
TCommitContext
Inherited from
Defined in
packages/pvm-vcs/types/index.ts:52
commit
â–¸ commit(commitContext
, message
, opts?
): Promise
<CommitResult
>
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
message | string |
opts? | CommitOptions |
Returns
Promise
<CommitResult
>
Inherited from
Defined in
packages/pvm-vcs/types/index.ts:56
deleteFile
â–¸ deleteFile(commitContext
, file_path
): void
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
file_path | string |
Returns
void
Inherited from
Defined in
packages/pvm-vcs/types/index.ts:55
dryRun
â–¸ dryRun(): void
Returns
void
Defined in
packages/pvm-vcs/types/index.ts:63
fetchLatestSha
â–¸ fetchLatestSha(refName
): Promise
<string
>
Parameters
Name | Type |
---|---|
refName | string |
Returns
Promise
<string
>
Defined in
packages/pvm-vcs/types/index.ts:60
getCurrentBranch
â–¸ getCurrentBranch(): string
| void
Returns
string
| void
Defined in
packages/pvm-vcs/types/index.ts:64
getHeadRev
â–¸ getHeadRev(): string
Returns
string
Defined in
packages/pvm-vcs/types/index.ts:65
isLastAvailableRef
â–¸ isLastAvailableRef(rev
): boolean
Parameters
Name | Type |
---|---|
rev | string |
Returns
boolean
Defined in
packages/pvm-vcs/types/index.ts:66
push
â–¸ push(opts?
): Promise
<void
>
Parameters
Name | Type |
---|---|
opts? | PushOptions |
Returns
Promise
<void
>
Defined in
packages/pvm-vcs/types/index.ts:62
rollbackCommit
â–¸ rollbackCommit(commitContext
): Promise
<void
>
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
Returns
Promise
<void
>
Inherited from
Defined in
packages/pvm-vcs/types/index.ts:53
updateFile
â–¸ updateFile(commitContext
, file_path
, content
): void
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
file_path | any |
content | any |
Returns
void