Releases: dandavison/delta
0.9.2
This release fixes a regression introduced in 0.9.0 affecting the use of git add -p
when submodules are present. See #755
What's Changed
- Do not reformat submodule diffs under
git add -p
by @dandavison in #756
Full Changelog: 0.9.1...0.9.2
0.9.1
This is a followup to release 0.9.0 fixing a bug in the --help
text emitted by the 0.9.0 binary (see 3aab5d1).
0.9.0 was a major release adding line-wrapping to side-by-side mode: 0.9.0 release notes.
0.9.0
With this release, long lines are wrapped in side-by-side mode, thanks to a far-reaching series of contributions by @th1000s (see #515). No special customization is needed, but sophisticated control over the details is available: see --wrap-max-lines
, --wrap-left-symbol
, --wrap-right-symbol
, --wrap-right-percent
, --wrap-right-prefix-symbol
, --inline-hint-style
.
In the image below, the long deleted line in the left panel overflows by a small amount, and the wrapped content is right-aligned in the next line. In contrast, the long replacement line in the right panel overflows by almost an entire line, and so the wrapped content is left aligned in the next line. The arrow markers and ellipsis explain when and how text has been wrapped.
What's Changed
- Fix the empty result issue in add -p by @norisio in #664
- Recognize GitHub SSH remote URLs that don't start with
git@
for hyperlinks by @spaarmann in #668 - Terminate process gracefully on error in diff() by @dandavison in #685
- Ignore ctrl-c (SIGINT) to avoid leaving an orphaned pager process. by @dandavison in #686
- Remove unnecessary borrows by @benarmstead in #692
- Fix computed values to be computed after all set_options by @ulwlu in #690
- Make it possible to jump between files when navigate is active by @dandavison in #684
- Fix empty line highlighting by @th1000s in #642
- Fix deadlock in
git diff
mode by @dandavison in #695 - Support
insteadOf
replacements in git remote URLs by @dandavison in #694 - Do not suppress submodule diffs by @dandavison in #699
- More minimalistic display of submodule (short) diffs by @dandavison in #700
- Fix hunk header when line number is not requested and navigate is enabled by @dandavison in #710
- Display removed file name in file deletion case by @dandavison in #717
- Remove superfluous lowercasing of feature names by @Tak in #718
- Option to set the background extension mode to ANSI or spaces by @th1000s in #512
- Add side-by-side line wrapping mode by @th1000s in #515
- Width can be an offset from the terminal width by @th1000s in #727
- Linenumber refactoring by @th1000s in #740
- Use fatal() to exit with errorcode 2 by @th1000s in #739
- Re-enable ANSI fill by equalizing panel sizes by @th1000s in #742
- Update syntaxes and themes from bat v0.18.3 by @FnControlOption in #702
- Line numbers and side-by-side mode by @th1000s in #748
New Contributors
- @norisio made their first contribution in #664
- @spaarmann made their first contribution in #668
- @benarmstead made their first contribution in #692
- @Tak made their first contribution in #718
- @FnControlOption made their first contribution in #702
Full Changelog: 0.8.3...0.9.0
0.8.3
This release fixes a security vulnerability (CVE-2021-36376) on Windows. Please update if you are using Windows.
0.8.2
0.8.1
This is mainly a bug fix release: filenames containing spaces were causing crashes due to a regression in 0.8.0. It also includes a fix for the delta file_a file_b
"diff mode" usage style, and an improvement for the diff-highlight / diff-so-fancy emulation modes.
0.8.0
- 🚀 New option
relative-paths
causes all file paths to be printed relative to the current directory so that they can be easily opened in a text editor or used in a shell command. Usinghunk-header-style = file line-number syntax
will emit the line number with the file path and thus should allow your editor to open at the correct line. For example, in the VS Code integrated terminal this means that with no further configuration every file path in git output can be opened with ctrl-click/cmd-click, and opening at a specific line works. Usediff-stat-align-width
to control horizontal alignment of diff stat sections, although this may be replaced by a better solution in the future. #552 - 🚀 New option
commit-regex
allows delta to work nicely with customgit log
formats (#174) - 🚀 Support
git -c delta.foo=bar ...
in latest git version #573 - 🚀 Support custom hyperlink hash formats #613
- 🚀 Allow custom themes to be defined as light themes #598
- 🚀 Transform file paths to be relative to current directory #552
- 🚀
delta file_A file_B
now invokesgit diff
, instead ofdiff -u
- [Fixed] 🐛 the --24-bit-color option is unusable from .gitconfig:
24-bit-color
is deprecated; usetrue-color
instead. #567 - [Fixed] 🐛 Fix less version parsing (#606, thanks @tpoliaw)
- [Fixed] 🐛 No output for chmod file mode change #583
0.7.1
This release brings two improvements due to delta contributors:
-
@cben proposed a new way for delta to seed
less
with the regexp that is used to implement navigation, which is implemented in this release. This makes it possible to keepnavigate=true
in delta config all the time, without the ill effects that it had before (#237) -
@clnoll contributed a new option
delta --show-themes
, which demos the delta color themes that are available locally.n
andN
step forwards and backwards through the themes. (#550) -
@clnoll has also contributed new themes to the growing collection (please consider submitting your own color config as a theme!)
-
[closed] 🐛 Setting $PAGER to use delta results in an infinite loop #529
-
[closed] 🐛
--navigate
breaksgit log --oneline
and emptygit diff
#237
0.6.1
To be superseded by 0.7.1
0.6.0
This release brings a new and more convenient way to change delta options in a one-off git command: using git -c
. Here's an example:
git -c delta.line-numbers=false -c delta.max-line-distance=0.8 show
Thanks to @wyuenho for pointing out that this should be supported. See #493 and #495.
One note: while quotes around color hex codes are required in gitconfig, they can be omitted in the git -c
context
git -c delta.plus-style='syntax "#aa0000"' show
git -c delta.plus-style='syntax #aa0000' show