Age | Commit message (Collapse) | Author |
|
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.13 to 4.5.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.13...v4.5.8)
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
Insta makes writing new tests or performing changes which update the
expected value(s) easier. The new reference data can be reviewed
and inserted/updated automatically by `cargo insta review` (after
`cargo install cargo-insta`, but that tool is optional).
The snapshots are stored inline using the `@""` syntax and not in
separate files because the delta test output is small and designed to
be human readable.
See https://insta.rs/#hello-snapshot-testing
and https://docs.rs/insta/1.39.0/insta/
|
|
* Fix unused variables
* Don't read git files when --no-gitconfig is given
Despite starting delta with `--no-gitconfig`, strace still shows
that `.git/config` etc. files are accessed. By no longer doing
that it is very clear that no config options are read from there.
|
|
* Only use `nosort` in bash <4.4
* Fix bad parameter order
|
|
macos-latest defaults to aarch64 as of ~2024-04
|
|
|
|
`env::set_var` is not-yet-unsafe, and here tests fail
because a var is already set by a second test while the first one
is still running.
`cargo test -- test_env` with sufficient (auto detected) parallelism
triggers this.
|
|
* Fix clippy warnings
* Repair --default-language, and highlight using full filename
Fixed that the "txt" fallback was used instead of --default-language
And when looking for syntax highlighting, keep the filename around
as long as possible.
Using simple custom logic (filename > 4) a Makefile can be highlighted
with make syntax, but a 'cc' or 'ini' file does not get treated like
a *.cc or *.ini file.
Currently the underlying highlighting lib syntect and the sublime syntax
definitions can not make this distinction
(<http://www.sublimetext.com/docs/syntax.html>).
|
|
|
|
While delta currently removes git's whitespace error markup from diffs
adding the whitespace rules will mean pre-commit hooks that run `git
diff --check` will reject changes with whitespace errors. In order to
get git to print the correct position of the error when there is an
unwanted tab in the indent following a space it is necessary to turn off
`space-before-tab` otherwise the space will be considered to be an error
instead of the tab.
The whitespace rule could perhaps be applied more widely but the
Makefile and example gitcofig have leading tabs so it is restricted them
to just rust files for now.
|
|
Fix a regression introduced by feec45b (Fix warning highlight for
trailing whitespace (#1037), 2023-05-17) where trailing space at the end
of an unchanged token is highlighted if the token follows an insertion.
This happens because when the token is split in two to separate trailing
whitespace the two halves end up being tagged with different edit
operations. This can be seen in the test changes in
`test_infer_edits_14` and `test_infer_edits_16` introduced by feec45b
which changed the operation from `PlusNoop` to `Insertion` when
splitting trailing whitespace from unchanged tokens. Fix this by using
the same operation when adding both halves of a split token and
correcting the tests.
Fixes #1658
|
|
|
|
It looks like delta tags/releases are automatically detected:
https://github.com/Homebrew/homebrew-core/blob/master/.github/autobump.txt
https://github.com/dandavison/delta/actions/runs/8308431801/job/22738650426
|
|
|
|
|
|
|
|
* Honor default-language option
* Add tests for default-language option
---------
Co-authored-by: Dan Davison <dandavison7@gmail.com>
|
|
|
|
Closes #320
|
|
|
|
|
|
Ref #1548
|
|
|
|
|
|
|
|
The old URL returns 404 now.
|
|
|
|
|
|
|
|
* Simplify handle_grep_line via early return
Rather than indenting the entire body of the function twice, return
early if the conditions aren't met.
* Parse filename unambiguously using color escape sequences
`git grep`, by default, emits ANSI color escape sequences around the
filename, separator, and line number. Parse these if available.
This currently assumes the default colors, and will fall back to the
previous parsing if any of the colors have been changed.
Add tests for filenames that previously failed to parse correctly.
|
|
delta already depends indirectly on anstyle-parse through clap. Switch
from vte to anstyle-parse to eliminate a few dependencies.
|
|
|
|
|
|
Fixes #587
|
|
|
|
|
|
|
|
|
|
Fixes: #1032
|
|
* generate-completion subcommand
* add Makefile target and replace completion scripts in repo with generated output
* Add completion to manual
|
|
In addition to the Tumbleweed, since openSUSE Leap 15.5, git-delta is
available in the official repository.
|
|
|
|
|
|
E.g.
org-123456@github.com:temporalio/api.git
|
|
Fixes #1501
|
|
|
|
|
|
|
|
* added binary file cases tests
* add binary file cases handling
* remove unnecessary return and comma
|
|
|