(args: string[])
| 711 | } |
| 712 | |
| 713 | function 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 | |
| 725 | function parseAuthorString(s: string): { name: string; email: string } | undefined { |
| 726 | // `Name <email@host>` — the same shape `git -c user.email=...` |