Home / Function/ getDateStringForCommit() — react Function Reference

getDateStringForCommit() — react Function Reference

Architecture documentation for the getDateStringForCommit() function in utils.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  525116ce_762b_5b01_ed31_ed7c2d3edecc["getDateStringForCommit()"]
  546f4b3f_877d_f3e0_6786_3887f1c6f8bf["utils.js"]
  525116ce_762b_5b01_ed31_ed7c2d3edecc -->|defined in| 546f4b3f_877d_f3e0_6786_3887f1c6f8bf
  0aca5005_e389_8b96_30f3_57dc882d8e89["execHelper()"]
  525116ce_762b_5b01_ed31_ed7c2d3edecc -->|calls| 0aca5005_e389_8b96_30f3_57dc882d8e89
  style 525116ce_762b_5b01_ed31_ed7c2d3edecc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/scripts/release/shared/utils.js lines 31–42

async function getDateStringForCommit(commit) {
  let dateString = await execHelper(
    `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

Calls

Frequently Asked Questions

What does getDateStringForCommit() do?
getDateStringForCommit() is a function in the react codebase, defined in compiler/scripts/release/shared/utils.js.
Where is getDateStringForCommit() defined?
getDateStringForCommit() is defined in compiler/scripts/release/shared/utils.js at line 31.
What does getDateStringForCommit() call?
getDateStringForCommit() calls 1 function(s): execHelper.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free