Skip to content
Testaroo
patch581 B

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.

Preview, first 23 linespatch
From 583350b7e8e635190615f9b3ceea3452809376c3 Mon Sep 17 00:00:00 2001
From: Priya Raman <priya.raman@example.invalid>
Date: Fri, 6 Mar 2026 14:03:56 +0000
Subject: [PATCH] build: link the schema package into the web tree

Keeps the generated types in one place instead of two copies.
---
 web/schema | 1 +
 1 file changed, 1 insertion(+), 0 deletions(-)
 create mode 120000 web/schema

diff --git a/web/schema b/web/schema
new file mode 120000
index 0000000..3ac446a
--- /dev/null
+++ b/web/schema
@@ -0,0 +1 @@
+../../vendor/ledger-schema
\ No newline at end of file
-- 
2.43.0

Specifications

Seed
20260807
Extended Header
new file mode 120000
Files
1
Link Target
../../vendor/ledger-schema
Trailing Newline
false
Line Endings
LF
Encoding
UTF-8

Testing contract

Expected to pass
Scenario
Apply a patch whose new file carries mode 120000.
Expected result
web/schema is created as a symbolic link to ../../vendor/ledger-schema, not as a regular file whose contents are that string.

What is a .patch file?

A .patch file is a unified diff packaged for transmission, most often as produced by `git format-patch`. Beyond the diff itself it carries an email-style header with the author, date, and commit subject, a commit message body, per-file `diff --git` headers recording renames and mode changes, and hunk headers of the form `@@ -old,count +new,count @@`. Applying it reconstructs a specific change against a specific before-state.

How to use this file

Use an example .patch file to test patch application, code-review renderers, and diff parsers: exercising renames, mode changes, binary hunks, added and deleted files, and the `\ No newline at end of file` marker that naive parsers silently drop.

How to use this file for testing

“Git Patch - Symlink Created With mode 120000” is a deterministic Testaroo fixture for Visual diff / regression, Code parsing, Editor testing. A/B image twins with controlled pixel changes, anti-alias variants, and UI chrome crops for screenshot diff and visual regression tools.

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.

Treat A/B twins as a visual regression unit: run your pixel or perceptual diff, assert a non-zero delta on the changed twin, and keep thresholds calibrated against the documented change kind in specs.

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