MCPcopy
hub / github.com/ampproject/amphtml / shortSha

Function shortSha

build-system/common/git.js:48–50  ·  view source on GitHub ↗

* Shortens a commit SHA to 7 characters for human readability. * @param {string} sha 40 characters SHA. * @return {string} 7 characters SHA.

(sha)

Source from the content-addressed store, hash-verified

46 * @return {string} 7 characters SHA.
47 */
48function shortSha(sha) {
49 return sha.substr(0, 7);
50}
51
52/**
53 * Returns the list of files changed but not committed to the local branch, one

Callers 6

printChangeSummaryFunction · 0.85
storeBundleSizeFunction · 0.85
skipBundleSizeFunction · 0.85
reportBundleSizeFunction · 0.85
getLocalBundleSizeFunction · 0.85
launchPercyAgentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected