radicle-dev / radicle-git

Everything Radicle growing around Git
Other
35 stars 5 forks source link

surf: Add `FileDiff::path` method #136

Closed sebastinez closed 1 year ago

sebastinez commented 1 year ago

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.

FintanH commented 1 year ago

Looks good :+1: I'll merge it now :)