Write a CLI tool patchtool that applies unified-format diffs to source files. It reads a single unified diff…
Write a CLI tool patchtool that applies unified-format diffs to source files. It reads a single unified diff…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Input: a unified diff on STDIN or via --diff FILE . The diff may use any standard…
The task
Exact I/O contract: - Input: a unified diff on STDIN or via `--diff FILE`. The diff may use any standard line ending (LF or CRLF); a CR before the line terminator in the diff belongs to the line ending, not to the patched content. File paths in the diff headers may be bare names or relative paths with forward…
Part of ai-and/termgrade-environments.