-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea: Provide a diff mode #135
Comments
E.g. changing {
inherit foo bar;
} to {
inherit foo bar baz;
} gives the diff {
inherit
foo
bar
+ baz
;
} |
Does this even have to be a nixfmt feature? This is achievable with a simple wrapper consisting of |
That works in some cases, but a truly semantic diff is trickier. I was recently pointed to https://github.com/Wilfred/difftastic though, which I believe does this already. And it's based on treesitter, so Nix is supported already! I guess there's no reason this needs to be part of nixfmt in any case, so let's just close. |
Idea from @Lucus16, to allow using nixfmt to diff Nix files semantically. This then doesn't really require optimising for normal git line diffs if it was persistently used.
The text was updated successfully, but these errors were encountered: