Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 988 Bytes

diff.md

File metadata and controls

45 lines (35 loc) · 988 Bytes
name cbbaseinfo cbparameters data
diff
description
Retrieves the diff of changes for a specific commit in the local repository.
parameters returns
name typeName description
commitHash
string
The hash of the commit to retrieve the diff for.
name typeName description
path
string
The file system path of the local Git repository.
signatureTypeName description typeArgs
Promise
A promise that resolves with the response from the diff event.
type name
intrinsic
any
name category link
diff
git
diff.md

Status

Comming soon...

Example

await git.diff('abc123', '/path/to/repo')

Explaination

Shows the difference between the specified commit and the current state of the repository. It has two parameter.

commitHash: A string specifying the commit hash to compare against.

path: A string specifying the local repository path.