Skip to content
Novus Examples

Explore the test library

Search files, editable visual templates, and live browser targets from one registry-backed directory. Filtered query views stay crawlable for links but are deliberately noindex; the stable taxonomy pages below remain the canonical search surfaces.

88 results

Page 2 of 4; 24 results per page.

Show the canonical directory
Preview of Git Patch - CRLF Line Endings Throughout
patch
1.2 KB
Actual file preview for Git Patch - CRLF Line Endings Throughout

Git Patch - CRLF Line Endings Throughout

The whole patch file uses CRLF terminators, as it would after a round trip through a Windows editor or a mail client. `git am` needs `--keep-cr` to be told the CRs belong to the patch rather than to the content, and the `-- ` signature line now ends with space-CR-LF.

File
PATCH · Patches · UTF-8
Use case
Encoding detectionVisual diff / regression+1· Paired fixture
Preview of Git Patch - deleted file mode Header
patch
761 B
Actual file preview for Git Patch - deleted file mode Header

Git Patch - deleted file mode Header

A deletion of an executable file, so the `deleted file mode 100755` header records the mode the file had rather than the mode to create. A patcher that writes an empty file here instead of unlinking leaves a broken executable behind.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Patch - Empty Commit With No Diff
patch
308 B
Actual file preview for Git Patch - Empty Commit With No Diff

Git Patch - Empty Commit With No Diff

format-patch output for a commit created with `--allow-empty`: full mail headers, a commit message, the `---` separator, and then straight to the signature with no diffstat and no diff. Pipelines that treat 'no diff found' as a parse error reject a message that git itself considers valid.

File
PATCH · Patches · UTF-8
Preview of Git Patch - Every Extended Header in One Commit
patch
3.5 KB
Actual file preview for Git Patch - Every Extended Header in One Commit

Git Patch - Every Extended Header in One Commit

The torture test: one commit that creates a file, deletes an executable, renames at 100%, copies with detection on, changes a mode while editing, and adds a binary blob. The diffstat carries the matching create/delete/rename/mode-change summary lines that follow the file table.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Patch - Full 40-Character index Hashes
patch
1.2 KB
Actual file preview for Git Patch - Full 40-Character index Hashes

Git Patch - Full 40-Character index Hashes

The same patch with `--full-index`, so both blob ids are the complete 40 hex characters. This is what `git apply --3way` needs to find the pre-image blob, and comparing the two twins shows a parser must accept any hash length between 4 and 40.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionMetadata testing+1· Conversion set
Preview of Git Patch - GIT binary patch With a literal Payload
patch
745 B
Actual file preview for Git Patch - GIT binary patch With a literal Payload

Git Patch - GIT binary patch With a literal Payload

A real binary file carried inside a text patch: zlib-deflated, encoded in git's own base85 alphabet, split into length-prefixed lines, and followed by the reverse `literal 0` payload that makes the patch revertible. The index line uses full 40-character hashes because `--binary` implies `--full-index`, and the recorded blob sha1 is the genuine object id of the attached PNG.

File
PATCH · Patches
Preview of Git Patch - Intentionally Invalid Hunk Line Counts
patch
1.2 KB
Actual file preview for Git Patch - Intentionally Invalid Hunk Line Counts

Git Patch - Intentionally Invalid Hunk Line Counts

An intentionally invalid patch whose hunk header claims 99 lines on each side while the body supplies far fewer. Every other byte is a well-formed patch, so this isolates one question: does the applier verify the declared counts, or does it trust them and read past the end of the hunk?

File
PATCH · Patches · UTF-8
Use case
Error handlingVisual diff / regression+1· Conversion set
Preview of Git Patch - Intentionally Invalid, Truncated Mid-Hunk
patch
569 B
Actual file preview for Git Patch - Intentionally Invalid, Truncated Mid-Hunk

Git Patch - Intentionally Invalid, Truncated Mid-Hunk

An intentionally invalid patch: the file ends three lines into a hunk that declares many more, as it would after a truncated download or a mail client cutting the message. Nothing is corrupt at the byte level, so a parser must notice the count mismatch rather than applying a partial hunk.

File
PATCH · Patches · UTF-8
Use case
Error handlingVisual diff / regression+1· Conversion set
Preview of Git Patch - LF Line Endings Throughout
patch
1.2 KB
Actual file preview for Git Patch - LF Line Endings Throughout

Git Patch - LF Line Endings Throughout

The LF half of the patch twin pair, identical in text content to the CRLF fixture. Diff the two downloads to get a change that is invisible in every renderer and fatal to a byte comparison.

File
PATCH · Patches · UTF-8
Use case
Encoding detectionVisual diff / regression+1· Paired fixture
Preview of Git Patch - Mode Change Plus Content Edit
patch
724 B
Actual file preview for Git Patch - Mode Change Plus Content Edit

Git Patch - Mode Change Plus Content Edit

The same file changes permissions and content in one commit, so the mode headers are followed by an `index` line and a normal hunk. Applying only the hunk and silently ignoring the mode is the common failure, and it leaves a script that is no longer executable.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Patch - Mode Change With No Hunks
patch
488 B
Actual file preview for Git Patch - Mode Change With No Hunks

Git Patch - Mode Change With No Hunks

A permission change and nothing else: the file section has `old mode`/`new mode` headers, no `index` line, no `---`/`+++` pair and no hunks at all. Parsers that require at least one hunk per file drop this change entirely and report an empty patch.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Patch - new file mode Header
patch
1 KB
Actual file preview for Git Patch - new file mode Header

Git Patch - new file mode Header

A file creation carried by the `new file mode 100644` extended header rather than by the paths alone. The mode is the authoritative signal: the `--- /dev/null` line tells you the old side is empty, but only the header tells you what permissions to create the file with.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Patch - Pure Rename at similarity index 100%
patch
540 B
Actual file preview for Git Patch - Pure Rename at similarity index 100%

Git Patch - Pure Rename at similarity index 100%

A rename with no content change at all: `similarity index 100%`, `rename from`, `rename to`, and then nothing — no index line and no hunks. This is the single most common patch shape that naive parsers lose, because there is no `@@` anywhere in the file section.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Patch - Rename Plus Edits at similarity index 68%
patch
1.3 KB
Actual file preview for Git Patch - Rename Plus Edits at similarity index 68%

Git Patch - Rename Plus Edits at similarity index 68%

A rename that also edits the file, so the similarity index drops to 68% and the rename headers are followed by an index line and real hunks whose `---`/`+++` paths differ from each other. A patcher that applies hunks to the path on the `---` line writes to the file that no longer exists.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Patch - RFC 2047 Encoded-Word Subject and Author
patch
1.4 KB
Actual file preview for Git Patch - RFC 2047 Encoded-Word Subject and Author

Git Patch - RFC 2047 Encoded-Word Subject and Author

Non-ASCII in the author name and the subject, so both are Q-encoded into `=?UTF-8?q?...?=` words and the subject is folded across two lines with a leading space. The body is left as raw UTF-8, which means one message needs two different decoders.

File
PATCH · Patches
Preview of Git Patch - Scissors Line Above the Real Commit Message
patch
1.3 KB
Actual file preview for Git Patch - Scissors Line Above the Real Commit Message

Git Patch - Scissors Line Above the Real Commit Message

A patch sent as a reply: the mail subject starts with `Re:`, quoted text sits above a `-- >8 --` scissors line, and the real commit subject and body sit below it. `git am --scissors` discards everything above the cut; a parser that trusts the mail Subject header records 'Re: [PATCH] ...' as the commit title.

File
PATCH · Patches · UTF-8
Preview of Git Patch - Single File With Full Mail Headers
patch
1.3 KB
Actual file preview for Git Patch - Single File With Full Mail Headers

Git Patch - Single File With Full Mail Headers

A complete format-patch message: the mbox `From <sha> Mon Sep 17 00:00:00 2001` line, RFC 5322 headers, a commit message with a Signed-off-by trailer, the `---` separator, a diffstat and the diff. The signature separator is `-- ` with the trailing space git actually writes, which editors love to strip.

File
PATCH · Patches · UTF-8
Preview of Git Patch - Symlink Created With mode 120000
patch
581 B
Actual file preview for Git Patch - Symlink Created With mode 120000

Git Patch - Symlink Created With mode 120000

Git stores a symlink as a blob whose contents are the link target with no trailing newline, so this patch adds a single + line followed by the no-newline marker and marks it mode 120000. A patcher that ignores the mode writes a regular text file containing a path.

File
PATCH · Patches · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Git Shortlog - Commits Grouped by Author
log
333 B
Actual file preview for Git Shortlog - Commits Grouped by Author

Git Shortlog - Commits Grouped by Author

The author-grouped summary git generates for release notes: a name, a commit count in parentheses, and the subjects indented by six spaces. The counts here are what the .mailmap fixture in this category produces after coalescing aliases, so the two files can be used together.

File
LOG · History · UTF-8
Preview of Git Status - Porcelain v1 With Every Status Pair
log
190 B
Actual file preview for Git Status - Porcelain v1 With Every Status Pair

Git Status - Porcelain v1 With Every Status Pair

Porcelain v1 output covering staged-only, worktree-only, added, renamed, deleted, unmerged, untracked and ignored entries. The two status characters are positional and a space is meaningful, so trimming the line before parsing turns ' M' (modified but unstaged) into 'M' (staged).

File
LOG · History · UTF-8
Use case
Log parsingVisual diff / regression+1· Conversion set
Preview of Git Status - Porcelain v2 With Branch Headers
log
757 B
Actual file preview for Git Status - Porcelain v2 With Branch Headers

Git Status - Porcelain v2 With Branch Headers

The v2 format for the same working tree: `# branch.*` headers first, then one record per entry whose leading character selects a completely different field layout. Rename records put the new path first and separate the two paths with a TAB rather than an arrow, and unmerged records carry three object ids instead of two.

File
LOG · History · UTF-8
Use case
Log parsingVisual diff / regression+1· Conversion set
Preview of Gitattributes - End-of-Line Normalisation Rules
gitattributes
477 B
Actual file preview for Gitattributes - End-of-Line Normalisation Rules

Gitattributes - End-of-Line Normalisation Rules

The attribute file that decides what happens to line endings on checkout: `text=auto` as the default, explicit `eol=lf` and `eol=crlf` overrides, the `binary` macro that expands to `-text -diff`, and one `-text` entry that is still given a textconv driver. This is the file whose absence causes the CRLF twins elsewhere in this category.

File
GITATTRIBUTES · Repo Config · UTF-8
Preview of Gitattributes - LFS Filters, Linguist Hints and export-ignore
gitattributes
642 B
Actual file preview for Gitattributes - LFS Filters, Linguist Hints and export-ignore

Gitattributes - LFS Filters, Linguist Hints and export-ignore

The non-EOL half of the format: LFS filter/diff/merge triples, `linguist-generated` and `linguist-vendored` hints that hide files from language statistics and review, `export-ignore` entries that drop paths from `git archive`, and a `merge=union` driver for an append-only changelog. Attribute values are unquoted and space-separated, so column alignment is whitespace a parser must collapse.

File
GITATTRIBUTES · Repo Config · UTF-8
Preview of Gitconfig - includeIf Conditions in Four Flavours
gitconfig
532 B
Actual file preview for Gitconfig - includeIf Conditions in Four Flavours

Gitconfig - includeIf Conditions in Four Flavours

Every conditional-include form git supports — path prefix, case-insensitive path prefix, branch glob, and a condition on an existing remote URL — plus one unconditional include. Order matters: a later include overrides an earlier one, so a parser that gathers includes into a set rather than a list resolves the wrong identity.

File
GITCONFIG · Repo Config · UTF-8