radicle-heartwood-lfs/radicle-cli
Slack Coder 0141313b35
cli: Refactor git diff encoding
Move code for writing radicle_surf diff's in git's unified diff format
into its own module.  Lean on the type system by defining a
`UnifiedDiff` trait to provide a method `encode` to encode to the
format and another default method to convert to a git 'unified' diff
string.

Additionally a `Header` struct is added to support processing Unified
Diff files.  The Header's line numbers must be tracked and modified to
produce legal diff files.

This is in preparation for DDiff support.  Upcoming improvements will
include parse unified diff's into these types to support test data.
2023-08-04 12:45:53 +02:00
..
examples cli: `git pull` to update patches in working copy 2023-08-04 12:28:22 +02:00
src cli: Refactor git diff encoding 2023-08-04 12:45:53 +02:00
tests cli: `git pull` to update patches in working copy 2023-08-04 12:28:22 +02:00
Cargo.toml Update `radicle-surf` and `git-ref-format` 2023-07-14 16:57:55 +02:00