getDateStringForCommit() — react Function Reference
Architecture documentation for the getDateStringForCommit() function in utils.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7544724e_8d88_e5d2_5b3d_21fbff49031c["getDateStringForCommit()"] 9ef9efb0_edfe_575a_20d0_9f1277d0f69a["utils.js"] 7544724e_8d88_e5d2_5b3d_21fbff49031c -->|defined in| 9ef9efb0_edfe_575a_20d0_9f1277d0f69a ec6c56c1_6dd5_95fc_9524_0690c804875e["getBuildInfo()"] ec6c56c1_6dd5_95fc_9524_0690c804875e -->|calls| 7544724e_8d88_e5d2_5b3d_21fbff49031c ad7cba5c_e3ec_b9df_3284_24c97e78c8dc["execRead()"] 7544724e_8d88_e5d2_5b3d_21fbff49031c -->|calls| ad7cba5c_e3ec_b9df_3284_24c97e78c8dc style 7544724e_8d88_e5d2_5b3d_21fbff49031c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release/utils.js lines 98–109
const getDateStringForCommit = async commit => {
let dateString = await execRead(
`git show -s --no-show-signature --format=%cd --date=format:%Y%m%d ${commit}`
);
// On CI environment, this string is wrapped with quotes '...'s
if (dateString.startsWith("'")) {
dateString = dateString.slice(1, 9);
}
return dateString;
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getDateStringForCommit() do?
getDateStringForCommit() is a function in the react codebase, defined in scripts/release/utils.js.
Where is getDateStringForCommit() defined?
getDateStringForCommit() is defined in scripts/release/utils.js at line 98.
What does getDateStringForCommit() call?
getDateStringForCommit() calls 1 function(s): execRead.
What calls getDateStringForCommit()?
getDateStringForCommit() is called by 1 function(s): getBuildInfo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free