Skip to content
Novus Examples
diff272 B

Combined Diff - Octopus Merge With Three Parents

An octopus merge, so the hunk marker grows to `@@@@` and every line carries three prefix columns. Any parser that hard-codes `@@@` or assumes two columns reads the third column as the first character of the line's content.

Preview — first 13 linesdiff
diff --cc config/service.yaml
index 37ff471,8bf23d2,b54d2a5..808a726
--- a/config/service.yaml
+++ b/config/service.yaml
@@@@ -1,4 -1,4 -1,4 +1,4 @@@@
   service: ledger
  -timeout: 30
 - timeout: 45
 ++timeout: 60
   jitter: on
-- backoff: linear
++ backoff: exponential

Specifications

Seed
20260807
Diff Format
combined
Parents
3
Hunk Marker
@@@@
Prefix Columns
3
Index Blobs
4
Line Endings
LF
Encoding
UTF-8

Testing contract

Expected to pass
Scenario
Parse a combined diff whose parent count is not two.
Expected result
The column count is derived from the number of @ characters (4 means 3 parents); every content line is split after exactly 3 prefix characters.

What is a .diff file?

A .diff file records the difference between two versions of one or more text files. The unified format — the default almost everywhere — names the old and new files on `---` and `+++` lines, then lists hunks introduced by `@@ -old,count +new,count @@` in which context lines are unprefixed and changed lines are prefixed with `-` or `+`. Older context and normal diff formats exist but are rarely produced today.

How to use this file

Use an example .diff file to test diff parsers, syntax highlighters, and merge tooling — verifying hunk-offset arithmetic, correct handling of context lines that begin with a space, and behaviour on files whose changes include trailing-whitespace or line-ending differences.

How to use this file for testing

“Combined Diff - Octopus Merge With Three Parents” is a deterministic Novus Examples fixture for Error handling, Visual diff / regression, Code parsing. Deliberately corrupt and invalid files, clearly labelled, for testing how your tool fails.

Documented properties for this file: seed 20260807 · UTF-8 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Diff and patch fixtures name their target paths and the exact edge case they exercise — rename, mode change, binary hunk, CRLF↔LF, or missing trailing newline. Apply or render them against the documented before-state; every author, path, and hash is fictional.

Generated by generation/version_control.py. Free for any use, no attribution required — license.