mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-29 14:10:27 +08:00
To help frontends with figuring out what kind of line is being talked about for added and deleted files, the serialization of `Addition` and `Deletion` always include a type. This mirrors the serialization of the `Modification` type, which is tagged because it's an enum. The serialization is hand-rolled since it is desirable to make sure that added files and deleted files are only ever composed of lines that are not modified. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett