/** * Pull the commit message out of a `git commit -m ` command. * * Handles three input shapes the walker may emit: * * 1. Double-quoted: `git commit -m "feat: foo"` — the `-m` value is * a single quoted token preserved by the shell. Captured between * the double-quotes. * 2. Single-quoted: `git commit -m 'feat: foo'` — same shape with * single quotes. * 3. Tokenized (AST-flattened): the walker may flatten * `git commit -m "feat: foo bar"` to the raw command text * `git commit -m feat: foo bar` (quotes stripped, multi-word * message). Captured greedily after `-m` up to the next flag * (a token starting with `-`) or end-of-string. This shape is * what `ctx.input.command` typically holds for a multi-word * message in pi-steering. * * Returns null if no `-m` is present (e.g., `git commit` alone, which * would open the editor; not a case the format predicate validates). * * @example * extractCommitMessage(`git commit -m "feat: x"`) // "feat: x" * extractCommitMessage(`git commit -m 'feat: x'`) // "feat: x" * extractCommitMessage(`git commit -m feat: x`) // "feat: x" * extractCommitMessage(`git commit -m feat: x --amend`) // "feat: x" (stops at --amend) * extractCommitMessage(`git commit`) // null */ export declare function extractCommitMessage(cmd: string): string | null; //# sourceMappingURL=extract.d.ts.map