mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-24 13:50:35 +08:00
Parse Git's unified diff format into Radicle Surf's types. Support to and from the format helps testing and debugging. Split the UnifiedDiff trait into Decode and Encode traits so we can offer Decode in cases where no data could be expected.. For example Option<Hunk<_>> and Hunk<_> allowing partial and repeated decoding on a byte stream. Avoid decoding `Diff`, `DiffContent::Binary`, `FileDiff`, and `FileHeader` types. `Diff` keeps fields and methods private which are necessary for decoding.
35 lines
439 B
Diff
35 lines
439 B
Diff
diff --git a/README.md b/README.md
|
|
index 18fb832..ce60f40 100644
|
|
--- a/README.md
|
|
+++ b/README.md
|
|
@@ -4,8 +4,8 @@ componentwise
|
|
reusing
|
|
simplest
|
|
crag
|
|
-offended
|
|
omitting
|
|
+offended
|
|
grinders
|
|
cutting
|
|
proverb
|
|
@@ -21,8 +21,8 @@ alliterative
|
|
stays
|
|
mahogany
|
|
whole
|
|
-snowflake
|
|
ellipses
|
|
+snowflake
|
|
yearning
|
|
inciting
|
|
permeating
|
|
@@ -30,3 +30,9 @@ bereaved
|
|
eventfully
|
|
hears
|
|
vacationing
|
|
+
|
|
+imprisoning
|
|
+absinthe
|
|
+shack
|
|
+exhale
|
|
+perfected
|