mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-16 08:10:41 +08:00
In some cases a moved file can also be modified and in these cases there will be a diff as well as new Oid's for the two sides of the diff. Add DiffFile to the Moved type, changing the insert_moved method to accept the DiffFile's and the DiffContent. When serializing a Moved, if the old and the new are the same then the serialization of the diff files and content are skipped -- same as the old behaviour. Otherwise, the two sides are serialized along with the content. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett