On 9/29/22 11:07 PM, Paul Jolly wrote:
> difftastic is a structural diff that understands syntax:
>
>
https://github.com/wilfred/difftastic
>
> I would like to understand whether it would be possible for structural
> diff (via difftastic) support to be added to Gerrit.
Gerrit core implementations are in Java and difftastic is Rust, so this
is not something that would be implemented in core. It would be possible
to make the diff algorithm in core pluggable, and then someone could
potentially provide a diffstatic implementation. This would be quite a
challenge also because Gerrit doesn't perform diffs directly on files,
it operates on git blobs via the jgit APIs, so likely any other diff
implementation would also need some translation layer to work with jgit.
I think this is quite a challenge, for a result that does not likely
align well with most Gerrit maintainer's objectives, so it would take a
fairly motivated other individual/team to make this happen,
-Martin