MCPcopy Index your code
hub / github.com/formkit/formkit / getCurrentHash

Function getCurrentHash

scripts/utils.mjs:365–372  ·  view source on GitHub ↗
(length = 7)

Source from the content-addressed store, hash-verified

363 * Returns the first n characters of the current git commit hash.
364 */
365export function getCurrentHash(length = 7) {
366 const hash = execSync(`git rev-parse HEAD`, {
367 encoding: 'utf-8',
368 })
369 .toString()
370 .trim()
371 return hash.slice(0, length)
372}
373
374/**
375 * Updates the version number export in the @formkit/core package to reflect the

Callers 2

promptForTaggedVersionFunction · 0.90
promptForTaggedVersionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected