Keith Hall
78951393e2
Merge pull request #3729 from curious-rabbit/sanitize
...
add --sanitize option
2026-07-01 23:15:58 +03:00
curious-rabbit
0a52e4321f
improve patch
2026-07-01 07:54:51 +02:00
curious-rabbit
d72163160e
add sanitize option
2026-07-01 07:09:49 +02:00
auto-merge-dependabot-prs[bot]
971f9679da
Merge pull request #3817 from sharkdp/dependabot/submodules/assets/syntaxes/02_Extra/LESS-d076a4d
...
build(deps): bump assets/syntaxes/02_Extra/LESS from `836b47e` to `d076a4d`
2026-07-01 02:16:46 +00:00
dependabot[bot]
57d436861a
build(deps): bump assets/syntaxes/02_Extra/LESS
...
Bumps [assets/syntaxes/02_Extra/LESS](https://github.com/danro/LESS-sublime ) from `836b47e` to `d076a4d`.
- [Release notes](https://github.com/danro/LESS-sublime/releases )
- [Commits](https://github.com/danro/LESS-sublime/compare/836b47ec61a9c6a6445b4007e8353337fe63e2c9...d076a4dd416bcdb155bacf90cda72f7bf1c8abbb )
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/LESS
dependency-version: d076a4dd416bcdb155bacf90cda72f7bf1c8abbb
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-01 02:03:33 +00:00
Keith Hall
bb4f48a124
Merge pull request #3816 from adnrivera/fix/ignored-suffix-firstline
...
Fix --ignored-suffix to fall back to first-line detection
2026-07-01 00:40:18 +03:00
Adrian Rivera
c75cc01eef
Fix --ignored-suffix to fall back to first-line detection
...
When an ignored suffix is also a registered extension (e.g. `.txt` maps to
"Plain Text"), `get_syntax_for_file_extension` matched the raw extension
before attempting the suffix strip. As a result `--ignored-suffix .txt` had
no effect on such files and first-line/shebang detection was never reached,
so a shell script saved as `*.txt` stayed unhighlighted.
Strip ignored suffixes first and detect on the remainder; only fall back to
the raw extension when no ignored suffix applies. When a suffix is stripped
but the remainder has no syntax, return `None` so the caller can use
first-line detection. Default behavior (no `--ignored-suffix`) is unchanged.
See #2745 .
2026-06-30 12:20:14 -07:00
Keith Hall
835bd2a756
Merge pull request #3793 from Matei02355/fix-sml-definition-link
...
docs: fix SML syntax source link
2026-06-28 22:25:36 +03:00
Keith Hall
3409674d9c
Merge branch 'master' into fix-sml-definition-link
2026-06-28 22:15:42 +03:00
Keith Hall
7de0c4ba47
Merge pull request #3809 from dhruvkb/patch-1
...
Include `.code-workspace` as a JSON extension
2026-06-27 22:21:18 +03:00
Keith Hall
20a818fe14
Merge branch 'master' into patch-1
2026-06-27 21:58:52 +03:00
Keith Hall
30b50a9eed
Merge pull request #3814 from injust/dnf-repo
...
Add syntax mapping for DNF config
2026-06-27 21:57:37 +03:00
injust
088f1e4253
Add changelog entry
2026-06-27 12:50:29 -04:00
injust
53769d03b0
Add syntax mapping for DNF config
2026-06-27 12:50:28 -04:00
Keith Hall
b7ae4585ad
Merge pull request #3812 from greymoth-jp/fix/list-languages-narrow-width-underflow
...
fix: avoid usize underflow in --list-languages at narrow terminal width
2026-06-27 06:12:21 +03:00
Keith Hall
a4609d1778
Merge branch 'master' into fix/list-languages-narrow-width-underflow
2026-06-27 06:03:16 +03:00
Keith Hall
8f70e0cf00
Merge pull request #3703 from blinxen/master
...
Replace libgit2 with gitoxide (#2 )
2026-06-27 05:53:22 +03:00
blinxen
e34595b53e
Update gix to 0.85
2026-06-26 20:28:29 +02:00
blinxen
6ba745b74b
cargo fmt
2026-06-26 20:27:49 +02:00
blinxen
98f09fd6f3
Add test with fauly git repo version
2026-06-26 20:27:49 +02:00
blinxen
69f40d9d8a
Regenerate Cargo.lock after rebase
2026-06-26 20:27:49 +02:00
blinxen
6e6137ce10
Update to gix 0.83
2026-06-26 20:27:49 +02:00
blinxen
df164cc2e3
fix immediate dereference of reference
2026-06-26 20:27:49 +02:00
blinxen
f9eed8d619
cargo fmt
2026-06-26 20:27:49 +02:00
blinxen
d695ad8f88
Add more tests for git diff
2026-06-26 20:27:49 +02:00
blinxen
e60d184f97
Use histogram instead of myers for diffing
2026-06-26 20:27:49 +02:00
blinxen
e2568c52cd
Use correct PR number
2026-06-26 20:27:49 +02:00
blinxen
c5e6f6aae3
Replace libgit2 with gitoxide
2026-06-26 20:27:49 +02:00
greymoth
8f93137246
doc(changelog): add #3812 bugfix entry
2026-06-26 22:13:51 +09:00
greymoth-jp
fa00fb8ce8
fix(list-languages): clamp desired_width to avoid usize underflow at tiny --terminal-width
...
`get_languages` computed `desired_width = term_width - longest - separator.len()`.
When `--terminal-width` is smaller than the longest language name (e.g. 1), this
underflows `usize`: in overflow-checked builds it panics ("attempt to subtract with
overflow"), and in release it wraps to ~usize::MAX, silently disabling the extension
line-wrapping so `--terminal-width` is ignored for `--list-languages`.
Use `saturating_sub`, mirroring the fix applied to `print_snip` in #3804 (the snip
separator had the same `term_width - ...` underflow pattern). Output at normal widths
is unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-26 17:24:01 +09:00
Dhruv Bhanushali
d117bf2320
Summarise the change in the CHANGELOG.md file
2026-06-23 08:08:14 +04:00
Dhruv Bhanushali
f4d836ee87
Include .code-workspace as a JSON extension
2026-06-23 08:01:50 +04:00
auto-merge-dependabot-prs[bot]
04576fd5a5
Merge pull request #3783 from sharkdp/dependabot/submodules/assets/syntaxes/02_Extra/vscode-wgsl-a285c38
...
build(deps): bump assets/syntaxes/02_Extra/vscode-wgsl from `acf2671` to `a285c38`
2026-06-17 17:51:31 +00:00
dependabot[bot]
e7025d9bdb
build(deps): bump assets/syntaxes/02_Extra/vscode-wgsl
...
Bumps [assets/syntaxes/02_Extra/vscode-wgsl](https://github.com/PolyMeilex/vscode-wgsl ) from `acf2671` to `a285c38`.
- [Release notes](https://github.com/PolyMeilex/vscode-wgsl/releases )
- [Commits](https://github.com/PolyMeilex/vscode-wgsl/compare/acf26718d7a327377641e31d8f9a9dab376efa84...a285c38f74eba2eb5c5a06be8d95b9f581338509 )
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/vscode-wgsl
dependency-version: a285c38f74eba2eb5c5a06be8d95b9f581338509
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-17 17:38:53 +00:00
Keith Hall
6d4a3cef53
Merge pull request #3789 from CosmicHorrorDev/caddy
...
feat: add syntax highlighting for `Caddyfile`
2026-06-17 20:35:17 +03:00
Cosmic Horror
6b8887133d
feat: add syntax highlighting for Caddyfile
2026-06-17 04:44:53 -06:00
Keith Hall
5bb35b4bed
Merge pull request #3804 from leeewee/fix-snip-terminal-width-1-panic
...
Fix capacity-overflow panic in snip separator at --terminal-width 1
2026-06-16 20:19:08 +03:00
weili
d28aa4a8b4
Fix capacity-overflow panic in print_snip at --terminal-width 1
...
`InteractivePrinter::print_snip` computes the snip separator width as
`term_width - panel_count - snip_left_count - title_count`. At `--terminal-width 1`
the panel is disabled and `title_count == 2`, so the subtraction underflows
`usize` (release has no overflow-checks, so it wraps to ~usize::MAX); `str::repeat`
then aborts with "capacity overflow" whenever a snip separator is emitted (two or
more disjoint line ranges, or a diff gap) — which the default style does.
Use `saturating_sub` for the repeat counts so they clamp to 0 instead of
underflowing. Added an integration test.
2026-06-16 07:06:29 +00:00
Matei6942
e9b552d5d0
docs: fix SML syntax source link
2026-06-05 17:40:39 +03:00
auto-merge-dependabot-prs[bot]
af1f53d9a9
Merge pull request #3786 from sharkdp/dependabot/cargo/nix-0.31.3
...
build(deps): bump nix from 0.31.2 to 0.31.3
2026-06-01 05:15:08 +00:00
dependabot[bot]
8033b1e7be
build(deps): bump nix from 0.31.2 to 0.31.3
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.31.2 to 0.31.3.
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.31.2...v0.31.3 )
---
updated-dependencies:
- dependency-name: nix
dependency-version: 0.31.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-01 05:03:33 +00:00
auto-merge-dependabot-prs[bot]
01408ce094
Merge pull request #3785 from sharkdp/dependabot/cargo/predicates-3.1.4
...
build(deps): bump predicates from 3.1.3 to 3.1.4
2026-06-01 05:00:15 +00:00
dependabot[bot]
bcd1d3f45b
build(deps): bump predicates from 3.1.3 to 3.1.4
...
Bumps [predicates](https://github.com/assert-rs/predicates-rs ) from 3.1.3 to 3.1.4.
- [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/predicates-rs/compare/v3.1.3...v3.1.4 )
---
updated-dependencies:
- dependency-name: predicates
dependency-version: 3.1.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-01 04:48:18 +00:00
auto-merge-dependabot-prs[bot]
4cd5db2a78
Merge pull request #3787 from sharkdp/dependabot/cargo/indexmap-2.14.0
...
build(deps): bump indexmap from 2.13.0 to 2.14.0
2026-06-01 04:44:39 +00:00
dependabot[bot]
67aa491313
build(deps): bump indexmap from 2.13.0 to 2.14.0
...
Bumps [indexmap](https://github.com/indexmap-rs/indexmap ) from 2.13.0 to 2.14.0.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.13.0...2.14.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-version: 2.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-01 04:28:21 +00:00
auto-merge-dependabot-prs[bot]
e490c0f322
Merge pull request #3782 from sharkdp/dependabot/cargo/minus-5.7.1
...
build(deps): bump minus from 5.6.1 to 5.7.1
2026-06-01 04:24:38 +00:00
dependabot[bot]
2d29ecb939
build(deps): bump minus from 5.6.1 to 5.7.1
...
Bumps [minus](https://github.com/AMythicDev/minus ) from 5.6.1 to 5.7.1.
- [Changelog](https://github.com/AMythicDev/minus/blob/main/CHANGELOG.md )
- [Commits](https://github.com/AMythicDev/minus/compare/v5.6.1...v5.7.1 )
---
updated-dependencies:
- dependency-name: minus
dependency-version: 5.7.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-01 03:59:42 +00:00
auto-merge-dependabot-prs[bot]
707b5949fd
Merge pull request #3781 from sharkdp/dependabot/cargo/plist-1.9.0
...
build(deps): bump plist from 1.7.0 to 1.9.0
2026-06-01 03:50:11 +00:00
dependabot[bot]
fd53693e1f
build(deps): bump plist from 1.7.0 to 1.9.0
...
Bumps [plist](https://github.com/ebarnard/rust-plist ) from 1.7.0 to 1.9.0.
- [Release notes](https://github.com/ebarnard/rust-plist/releases )
- [Changelog](https://github.com/ebarnard/rust-plist/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ebarnard/rust-plist/compare/v1.7.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: plist
dependency-version: 1.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-01 03:30:20 +00:00
Keith Hall
f3d0773468
Merge pull request #3761 from mvanhorn/fix/3760-completion-skip-pager
...
fix(completions): force --no-paging on bat invocations in completion scripts (#3760 )
2026-05-20 07:00:37 +03:00