-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved Moved
#141
Improved Moved
#141
Conversation
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
Thanks @FintanH for the heads up, as far as I can see we would need to adapt the I'll add a issue on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, will add these changes to radicle-interface
That's great! Thanks for confirming that :) |
- Adds support for modified moved files see radicle-dev/radicle-git#141 Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
- Adds support for modified moved files see radicle-dev/radicle-git#141 Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
- Adds support for modified moved files see radicle-dev/radicle-git#141 Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
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.
Fixed #140
cc @sebastinez how will this affect radicle-interface/radicle-httpd for showing diffs for moved files?