Changelog for nix-diff-1.0.21
1.0.21
- Support relocated Nix store
- If configured through
NIX_REMOTEenvironment variable.
- If configured through
- Compact input derivation diffs
- Fix support for
less -Rwhen coloring multiple lines
1.0.20
- Add
--contextflag- This limits the context to the specified number of characters/words/lines
- Bump upper bounds
- Allow
unix-2.8and few more
- Allow
1.0.19
- New Haskell API
- Previously
nix-diffonly had a command-line API, but now there is a Haskell API available under theNix.Diffmodule hierarchy
- Previously
- Machine-readable output
nix-diffnow supports a--jsonflag for machine-readable JSON output
- New
--skip-already-comparedcommand-line option- This compresses a sub-tree of the diff if the leaves have already been compared
- New
--squash-text-diffcommand-line option- This compresses textual diffs into larger spans when possible
- Ignore
!${OUTPUT}nix-diffwill now strip everything after!from a derivation argument so that arguments like/nix/store/…!binno longer fail
1.0.18
1.0.17
1.0.16
- Accept realised store paths as input
nix-diffwill attempt to find the corresponding derivations usingnix-store --query --deriverif you provide a realised store path as input
1.0.15
- Fix non-exhaustive pattern match
- This non-exhaustive pattern match would cause the program to fail if the new derivation added or removed input sources
1.0.14
- Improve whitespace handling
-
--word-orientednow treats all whitespace characters as word boundaries instead of just spacesThis matches the behavior of
Prelude.words -
--word-orientedno longer highlights the intervening spaces between wordsThis is for consistency with
--line-oriented, which doesn't highlight the intervening spaces between lines. Also, you could argue that if the user specifies--word-orientedthen they want all new tokens to be highlighted on a word-by-word basis. -
--line-orientednow no longer introduces a trailing newline at the end of a newline-free segment of text -
More generally, both
--word-orientedand--newline-orientedexactly preserve the original whitespace that was used for word or line boundaries.
-
1.0.13
- Add new
--word-orientedmode, which is now the new default mode- This now diffs on word boundaries instead of line-boundaries
1.0.12
- Use "patience" diff algorithm
- This improves the quality of the diff
1.0.11