From 3ebca194e491b3ee5053bdcca6d554320a69cca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Lema=C5=84czyk?= Date: Fri, 3 Oct 2025 21:12:41 +0200 Subject: [PATCH] Instructions for `apply_patch.cs` extended to --- AGENTS.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 8c660b0..81e90ab 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -25,6 +25,13 @@ 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. +`apply_patch.cs` supports several parameters, depending on your needs: +* `--check` - allows checking if the patch will work without making changes to the files +* `--ignore-whitespace` +* `--ignore-eol` +* `--ignore-line-endings` +* `--target` - allows specifying target root directory for the patch + * 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.