MCPcopy Create free account
hub / github.com/cloudflare/computer / expandCommitShortCluster

Function expandCommitShortCluster

packages/computer/src/git/cli.ts:713–723  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

711}
712
713function expandCommitShortCluster(args: string[]): string[] {
714 const out: string[] = [];
715 for (const arg of args) {
716 if (/^-a+m$/.test(arg)) {
717 for (const ch of arg.slice(1)) out.push(`-${ch}`);
718 continue;
719 }
720 out.push(arg);
721 }
722 return out;
723}
724
725function parseAuthorString(s: string): { name: string; email: string } | undefined {
726 // `Name <email@host>` — the same shape `git -c user.email=...`

Callers 1

runCommitFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected