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. |
|
|
|
name |
category |
link |
diff |
git |
diff.md |
|
Comming soon...
await git.diff('abc123', '/path/to/repo')
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.