From fb6009ff1ce3b7c13dbf68f754fe2468f646edce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Lema=C5=84czyk?= Date: Fri, 3 Oct 2025 21:42:24 +0200 Subject: [PATCH] Instructions for apply_patch.cs extended --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 0249414..0cb4f58 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -36,6 +36,8 @@ It supports the standard `git diff` patch files as input. You should be able to * It supports `---`, `+++`, and `@@`. * It doesn't support `***` or `*** Begin/End Patch` wrappers. * It requires `diff --git` at the beginning. + * Patch header needs the actual line numbers. +* Check if the patch will work by using `--check` parameter, without making changes to the files, which would force patch changes. * Build patches in small, line-precise hunks; confirm target lines with `Get-Content` or `nl -ba` 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.