isGit() — react Function Reference
Architecture documentation for the isGit() function in listChangedFiles.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 23eacfd0_c92f_20db_f4f0_929cf5c691c6["isGit()"] 11e73df0_f7c0_57fe_bf2a_1da4f8d2e04d["listChangedFiles.js"] 23eacfd0_c92f_20db_f4f0_929cf5c691c6 -->|defined in| 11e73df0_f7c0_57fe_bf2a_1da4f8d2e04d e52292ba_1bfa_a304_d5d7_e4889e2dbefe["listChangedFiles()"] e52292ba_1bfa_a304_d5d7_e4889e2dbefe -->|calls| 23eacfd0_c92f_20db_f4f0_929cf5c691c6 c0ad6592_301b_09ec_948e_76e3ffadead0["execGitCmd()"] 23eacfd0_c92f_20db_f4f0_929cf5c691c6 -->|calls| c0ad6592_301b_09ec_948e_76e3ffadead0 style 23eacfd0_c92f_20db_f4f0_929cf5c691c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/shared/listChangedFiles.js lines 22–29
const isGit = () => {
try {
const wt = execGitCmd(['rev-parse', '--is-inside-work-tree']);
return wt.length > 0 && wt[0] === 'true';
} catch (_e) {
return false;
}
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does isGit() do?
isGit() is a function in the react codebase, defined in scripts/shared/listChangedFiles.js.
Where is isGit() defined?
isGit() is defined in scripts/shared/listChangedFiles.js at line 22.
What does isGit() call?
isGit() calls 1 function(s): execGitCmd.
What calls isGit()?
isGit() is called by 1 function(s): listChangedFiles.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free