mirror of
https://github.com/rtk-ai/rtk.git
synced 2026-09-19 07:33:17 +08:00
120450b480
Structure is read through a per-line ANSI/CR-stripped view and content is pushed raw, so escapes that are part of the user's content survive (the file path was already byte-faithful on the same input). Rule 8's mbox tolerance now ends at the first diffstat line: an orphaned hunk body in a hand-edited series falls back raw instead of being dropped as prose, while version notes between `---` and the diffstat stay prose. `diff --git X Y` with X == Y marks a --no-prefix stream whose header names keep their leading a/ b/ (creations and deletions included); the check is confined to the two-path form. The new-side `\ No newline` marker is kept only on the line right after its hunk closes. The dead `!in_prologue` conjunct and the variable behind it are gone. Real `git diff --cached --no-prefix` fixture added to the corpus.
29 lines
495 B
Plaintext
29 lines
495 B
Plaintext
diff --git a/y.rs a/y.rs
|
|
deleted file mode 100644
|
|
index 286c5f5..0000000
|
|
--- a/y.rs
|
|
+++ /dev/null
|
|
@@ -1 +0,0 @@
|
|
-gone
|
|
diff --git b/has space.txt b/has space.txt
|
|
index e0808fa..df150e3 100644
|
|
--- b/has space.txt
|
|
+++ b/has space.txt
|
|
@@ -1 +1,2 @@
|
|
keep me
|
|
+and more
|
|
diff --git b/x.rs b/x.rs
|
|
index b95d8a9..b5c0f9a 100644
|
|
--- b/x.rs
|
|
+++ b/x.rs
|
|
@@ -1 +1 @@
|
|
-fn old() {}
|
|
+fn new() {}
|
|
diff --git b/z.rs b/z.rs
|
|
new file mode 100644
|
|
index 0000000..078b2f6
|
|
--- /dev/null
|
|
+++ b/z.rs
|
|
@@ -0,0 +1 @@
|
|
+born
|