MCPcopy Index your code
hub / github.com/react/react / getGitCommit

Function getGitCommit

packages/react-devtools-extensions/utils.js:14–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12const GITHUB_URL = 'https://github.com/facebook/react';
13
14function getGitCommit() {
15 try {
16 return execSync('git show -s --no-show-signature --format=%h')
17 .toString()
18 .trim();
19 } catch (error) {
20 // Mozilla runs this command from a git archive.
21 // In that context, there is no Git revision.
22 return null;
23 }
24}
25
26function getVersionString(packageVersion = null) {
27 if (packageVersion == null) {

Callers 2

buildFunction · 0.85
getVersionStringFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected