You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apply_patch accepts the patch formats coding models write, not only unified diffs: OpenAI's *** Begin Patch format (ChatGPT, Codex, Cline), SEARCH/REPLACE blocks (aider, Cline, Roo
Code), unified diffs with bare @@ hunk headers, and any of these wrapped in a markdown fence.
Unified diffs with numbered hunks still go through git apply.
apply_patchstrip defaults to 1 only when the diff paths start with a/ and b/, and to 0
otherwise, so --- file / +++ file diffs apply without setting it.