diff.rs icon indicating copy to clipboard operation
diff.rs copied to clipboard

Diff seems to contain unchanged chunks

Open foresterre opened this issue 1 year ago • 1 comments

Summary

The diff seems to contain unchanged lines, as both added and removed

Expected:

Diff to be empty, or only show what changed.

Actual:

Shows all lines in file as both added and deleted. I think this is also the case for changed files in at least this example, but it's a lot easier to spot in unchanged files.

Examples:

  • https://diff.rs/cargo-msrv/0.16.0-beta.25/0.16.2/src%2Fexit_code.rs
  • https://diff.rs/cargo-msrv/0.16.0-beta.25/0.16.2/src%2Fdefault_target.rs
  • https://diff.rs/cargo-msrv/0.16.0-beta.25/0.16.2/.github%2Fworkflows%2Fdocker.yml
  • https://diff.rs/cargo-msrv/0.16.0-beta.25/0.16.2/.github%2Fdependabot.yml
  • https://diff.rs/cargo-msrv/0.16.0-beta.25/0.16.2/.dockerignore

Example screenshot:

image

I also checked for whitespace changes:

image

foresterre avatar Oct 14 '24 08:10 foresterre