MCPcopy Create free account
hub / github.com/expo/expo / commitAsync

Function commitAsync

packages/patch-project/src/gitPatch.ts:19–30  ·  view source on GitHub ↗
(repoRoot: string, message: string)

Source from the content-addressed store, hash-verified

17}
18
19export async function commitAsync(repoRoot: string, message: string) {
20 await runGitAsync(['commit', '-m', message], {
21 cwd: repoRoot,
22 env: {
23 ...process.env,
24 GIT_AUTHOR_NAME: 'expo-cng',
25 GIT_COMMITTER_NAME: 'expo-cng',
26 GIT_AUTHOR_EMAIL: 'noreply@expo.dev',
27 GIT_COMMITTER_EMAIL: 'noreply@expo.dev',
28 },
29 });
30}
31
32export async function diffAsync(
33 repoRoot: string,

Callers 1

Calls 1

runGitAsyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…