Skip to content

Releases: dandavison/delta

0.9.2

29 Oct 19:24
Compare
Choose a tag to compare

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

Full Changelog: 0.9.1...0.9.2

0.9.1

27 Oct 00:56
Compare
Choose a tag to compare

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

27 Oct 00:06
Compare
Choose a tag to compare

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.

image

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

Full Changelog: 0.8.3...0.9.0

0.8.3

13 Jul 10:44
f01846b
Compare
Choose a tag to compare

This release fixes a security vulnerability (CVE-2021-36376) on Windows. Please update if you are using Windows.

0.8.2

29 Jun 12:07
Compare
Choose a tag to compare

This is a bug fix release: the bug occurs when using delta to diff files whose names contain spaces. It does not affect use of delta as git's pager.

  • [closed] 🐛 argument parsing error with delta fileA fileB when filenames contain spaces #644

0.8.1

25 Jun 10:45
ac2873d
Compare
Choose a tag to compare

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.

  • [closed] 🐛 Panic with filename "01g - Text" #639
  • [closed] 🐛 side-by-side option only works in diff mode when piping #631
  • [closed] commit-style raw for diff-so-fancy / diff-highlight #623

0.8.0

28 May 18:35
Compare
Choose a tag to compare
  • 🚀 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. Using hunk-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. Use diff-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 custom git 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 invokes git diff, instead of diff -u
  • [Fixed] 🐛 the --24-bit-color option is unusable from .gitconfig: 24-bit-color is deprecated; use true-color instead. #567
  • [Fixed] 🐛 Fix less version parsing (#606, thanks @tpoliaw)
  • [Fixed] 🐛 No output for chmod file mode change #583

0.7.1

29 Mar 22:49
Compare
Choose a tag to compare

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 keep navigate=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 and N 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 breaks git log --oneline and empty git diff #237

0.6.1

29 Mar 22:33
Compare
Choose a tag to compare

To be superseded by 0.7.1

0.6.0

05 Feb 14:20
Compare
Choose a tag to compare

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
  • [closed] 🐛 Hunk header misaligned in some cases #510
  • [closed] 🐛 Delta does not respect git -c #493
  • [closed] 🚀 Support for Apple Silicon/ARM64 #484
  • [closed] 🐛 Can't disable line numbering from command line #307