Skip to content

Conversation

@ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Sep 12, 2024

Why this should be merged

Provides an objective measure of the diff against geth.

image

How this works

  • --diff-filter=a excludes additions (i.e. libevm-specific files), leaving only modifications, deletions, etc.
  • --word-diff fine-grained diff instead of per-line
  • --unified=0 removes context, which is noisy when viewing the diff as a whole

The libevm-base tag MUST now always track the geth version from which the current version of libevm diverges. This workflow performs a diff libevm-base..HEAD (i.e. diff if the PR is merged) and libevm-base..libevm (i.e. the current status quo).

In the future we can look at performing a "diff of diffs" and warn if a PR increases destructive changes. Basic [+x -y] stats could also be extracted.

How this was tested

Pain and suffering (look at the commit history).

@ARR4N ARR4N marked this pull request as ready for review September 13, 2024 06:24
@ARR4N ARR4N requested review from a team, ceyonur, darioush and michaelkaplan13 and removed request for a team September 13, 2024 06:24
@ARR4N ARR4N merged commit df32256 into libevm Sep 14, 2024
3 checks passed
@ARR4N ARR4N deleted the arr4n/diff-libevm-base branch September 14, 2024 08:33
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