From 83cf33fe773185417c07a891a24eb9d9d969a0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Lema=C5=84czyk?= Date: Fri, 3 Oct 2025 20:59:16 +0200 Subject: [PATCH] Instructions for preparing patches extended --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index 50d0f76..fb08e21 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -25,6 +25,7 @@ dotnet script apply_patch.cs -- [target-directory] It supports the standard `git diff` patch files as input. You should be able to run it both in the local and remote `Codex` environments. You should expect it to work both in `Windows` and `Linux` environments. Make sure that you include `diff --git` lines, headers and file prefixes in the patch files to avoid applying issues. +* Build patches in standard `git diff` format. * Build patches in small, line-precise hunks; confirm target lines with Get-Content before writing the diff to avoid context mismatches. * Regenerate the diff whenever the file shifts—never reuse an old hunk after other edits. * Keep patch filenames unique and delete applied files to prevent accidental re-use.