Interface: FileCommitApi<TCommitContext>
@pvm/vcs.FileCommitApi
Type parameters
Name |
---|
TCommitContext |
Hierarchy
FileCommitApi
↳
AbstractVcs
Implemented by
Methods
addFiles
â–¸ addFiles(commitContext
, filePaths
): void
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
filePaths | string [] |
Returns
void
Defined in
packages/pvm-vcs/types/index.ts:50
appendFile
â–¸ appendFile(commitContext
, filePath
, content
): void
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
filePath | string |
content | string |
Returns
void
Defined in
packages/pvm-vcs/types/index.ts:51
beginCommit
â–¸ beginCommit(): TCommitContext
Returns
TCommitContext
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
>
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
Defined in
packages/pvm-vcs/types/index.ts:55
rollbackCommit
â–¸ rollbackCommit(commitContext
): Promise
<void
>
Parameters
Name | Type |
---|---|
commitContext | TCommitContext |
Returns
Promise
<void
>
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