129 Commits
Author SHA1 Message Date
SichenLiang 01fb6c3abc grep: handle malformed color environment values (#139) 2026-10-13 23:20:17 +02:00
André VelásquezandLeonard Hecker b68f81cd32 grep: adds lazy buffer ring allocation (#140)
Co-authored-by: Leonard Hecker <leonard@hecker.io>
2026-10-12 14:42:32 +02:00
oech3 8d947e886c ci.yml: avoid full git clone (--depth=1) 2026-10-12 09:04:20 +02:00
Sichen 15206fa0c7 grep: combine the terminal color tests
The no-color-option case used the same terminal setup as the automatic
color test. Added it as another case in that test instead of keeping two
copies of the setup.
2026-10-10 15:57:59 +02:00
Sichen 21c51bdb13 grep: share colored file-name prefix output
The count path has been r repeated the same file-name and separator
coloring used by `write_prefix`. Move that part into a small helper and
call it from both places.
2026-10-10 15:57:59 +02:00
Sichen c96d7f844b grep: color prefixes in count output
When `-c` prints a file name, use the `fn` color for the name and `se`
for its separator. Leave the count itself, and a NUL separator if used,
uncolored.
2026-10-10 15:57:59 +02:00
Sichen 5d43092040 grep: fix default and automatic color handling
Treats an omitted color option as `never`. For automatic color, also
require `TERM` to be set on Unix and not equal to `dumb`.
An unset `TERM` does not disable color on Windows, but `TERM=dumb`
still do.
2026-10-10 15:57:59 +02:00
oech3 89fa10cbe0 Cargo.toml: sync profile with coreutils 2026-10-07 08:21:48 +02:00
SichenLiang 381695b137 grep: report file errors with -q (#128) 2026-10-01 18:33:49 +02:00
renovate[bot] 916ce97754 chore(deps): update dawidd6/action-download-artifact action to v27 2026-09-30 07:16:37 +02:00
renovate[bot] be2f5c2282 chore(deps): update dawidd6/action-download-artifact action to v26 2026-09-29 07:04:05 +02:00
renovate[bot] 4144afa708 chore(deps): update dawidd6/action-download-artifact action to v25 2026-09-26 07:14:41 +02:00
Daniel Hofstetter 4481e9b440 Bump cargo-dist from 0.32.0 to 0.33.0 (#119) 2026-09-22 11:57:42 +02:00
renovate[bot] 7df4d59b8e chore(deps): update dependency ubuntu to v26 (#123) 2026-09-19 01:40:37 +02:00
renovate[bot] 42bf46eec7 fix(deps): update rust crate uucore to 0.12.0 2026-09-18 09:04:57 +02:00
renovate[bot] 6aa9b7a7bb chore(deps): update rust crate criterion to v5.0.2 2026-09-18 07:22:44 +02:00
renovate[bot] 247226079c chore(deps): update rust crate uutests to 0.12.0 2026-09-18 07:22:27 +02:00
renovate[bot] f10855e4d5 chore(deps): update rust crate clap to v4.6.7 2026-09-15 07:15:20 +02:00
a2bb0c6ecb grep: expand bundled numeric context options (#76)
* grep: expand bundled numeric context options

* Simplify and fix expand_num_shorthand

---------

Co-authored-by: ColumbusLabs <287001685+ColumbusLabs@users.noreply.github.com>
Co-authored-by: Leonard Hecker <leonard@hecker.io>
2026-09-12 22:23:12 +02:00
renovate[bot] b69057f696 chore(deps): update actions/checkout action to v7 (#98) 2026-09-06 01:21:29 +02:00
renovate[bot] 8dc8daf097 fix(deps): update rust crate uucore to 0.11.0 2026-09-01 15:59:33 +02:00
renovate[bot] c4e4a5f6ec chore(deps): update rust crate uutests to 0.11.0 2026-09-01 15:29:20 +02:00
xtqqczze 668438195c build(deps): update rust crates (#114) 2026-09-01 13:45:04 +02:00
Sylvestre Ledru 3a780d6728 README: add cargo-binstall install command (#113) 2026-08-28 00:29:35 +02:00
Sylvestre Ledru 87fb973494 grep: pin onig_sys instead of a wildcard version (#112) 2026-08-27 20:29:43 +02:00