Closed nh2 closed 5 years ago
@nh2: By "unified" diff, do you mean a line-based diff?
I mean the same output ass diff -u
generates; that is usually line-based, yes. For me the line-based-ness is more important than the actual unified format (though that may be useful to view nix-diff output in diff viewers, not sure).
@nh2: Fix is up here: https://github.com/Gabriel439/nix-diff/pull/22
Let me know if that satisfies your use case
When you use
--color never
(or pipe intoless
) and it's trying to do diffs of strings:Notice the
s→tatic --s→hared
.I think it would make sense to have a mode that outputs the difference in a non-inline-diff way, e.g. as a unified diff even for just strings.
Ideally that would work with and without colour.