Age | Commit message (Collapse) | Author |
|
* 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
|
|
|
|
Ref #1467
|
|
fix pager env in case of `more/most`
|
|
Fixes #1475
This reverts commit 8d14a1eba3ca93d6f6ebf3be541b37c6677139a6.
|