* Get the git commit SHA from a git repository directory * Returns undefined if not a git repo or if operation fails
(dirPath: string)
| 1000 | * Returns undefined if not a git repo or if operation fails |
| 1001 | */ |
| 1002 | async function getGitCommitSha(dirPath: string): Promise<string | undefined> { |
| 1003 | const sha = await getHeadForDir(dirPath) |
| 1004 | return sha ?? undefined |
| 1005 | } |
| 1006 | |
| 1007 | /** |
| 1008 | * Try to read version from plugin manifest |
no test coverage detected