Gabriella439 / nix-diff

Explain why two Nix derivations differ
BSD 3-Clause "New" or "Revised" License
357 stars 19 forks source link

combined line-oriented and regular diff mode #32

Open ajs124 opened 3 years ago

ajs124 commented 3 years ago

Not sure how viable this is or how interested you are in implementing something like this, but I think neither the line-oriented nor the regular diff mode are optimal, but rather a combination of the two.

Basically, I'd like a diff view like the one github or gitlab (and probably a bunch of other things) offer.

An example from a PR, set to unified instead of split diff mode, looks like this: example

Gabriella439 commented 3 years ago

@ajs124: I'd accept a pull request for this, but I'm unlikely to implement this myself

Gabriella439 commented 3 years ago

You might be interested in: https://github.com/Gabriel439/nix-diff/pull/38