Skip to content
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

surf: Add FileDiff::path method #136

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

sebastinez
Copy link
Member

@sebastinez sebastinez commented Jul 24, 2023

This allows to get the latest path of a FileDiff, directly from radicle_surf

Usage example: In the radicle-httpd diff endpoints we want to add the blobs of the files that are involved in a diff, and this way we could do a repo.blob(commit, file_diff.path()) to get the path quickly.

This allows to get the latest path of a `FileDiff`, directly from
`radicle_surf`

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
@FintanH
Copy link
Collaborator

FintanH commented Jul 24, 2023

Looks good 👍 I'll merge it now :)

@FintanH FintanH merged commit b1984bd into radicle-dev:main Jul 24, 2023
@sebastinez sebastinez deleted the sebastinez/fileDiff-path branch July 25, 2023 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants