MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getGitSha

Function getGitSha

webview-ui/vite.config.ts:11–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import { sourcemapPlugin } from "./src/vite-plugins/sourcemapPlugin"
10
11function getGitSha() {
12 let gitSha: string | undefined = undefined
13
14 try {
15 gitSha = execSync("git rev-parse HEAD").toString().trim()
16 } catch (_error) {
17 // Do nothing.
18 }
19
20 return gitSha
21}
22
23const wasmPlugin = (): Plugin => ({
24 name: "wasm",

Callers 2

mainFunction · 0.85
vite.config.tsFile · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected