Commit graph

813 commits

Author SHA1 Message Date
Jonah Caplan
2e115df9e7 simplify check in prent_entry 2021-10-15 23:57:03 -04:00
Jonah Caplan
953f586f26 replace -N option with specifying '.' path 2021-10-15 23:57:03 -04:00
Jonah Caplan
08d913f167 cargo fmt fixup 2021-10-15 23:56:36 -04:00
Jonah Caplan
6b92c5db90 add -N/--no-strip option to show "./" prefix on relative paths 2021-10-15 23:56:36 -04:00
Tavian Barnes
7b5b3ec47b walk: Add a cache for DirEntry metadata 2021-10-13 09:13:44 +02:00
Niklas Mohrin
02e9850112 Refactor: Rename Options to Config 2021-10-12 18:49:07 +02:00
Niklas Mohrin
b8c575cc8f Refactor: extract some methods out of run and reorder main.rs
Now, the top method is `main`, then comes `run`, then the methods used
in `run` follow. Generally, a method is always declared somewhere after
its first use. This way, you can read the file from top to bottom with
a decreasing level of abstraction (you start with very high-level
processes like setting the current dir and logic for which ls command to
use only comes furher down).
2021-10-12 18:49:07 +02:00
Niklas Mohrin
3de948ae0d Refactor: use some nice Rust methods in buffering code 2021-10-12 18:49:07 +02:00
Niklas Mohrin
45a86459b2 Refactor: merge_exit_codes now takes an impl IntoIterator<Item = ExitCode>
This way, callers don't need to collect into a slice / vec.
2021-10-12 18:49:07 +02:00
Niklas Mohrin
a64a607fd8 Bump MSRV to 1.53 2021-10-12 18:49:07 +02:00
Thayne McCombs
00eb6461cb
Remove an unnecessary reference. (#864)
This was caught by Code Quality github action with the message:

> this expression borrows a reference (`&walk::DirEntry`) that is immediately dereferenced by the compiler
2021-10-12 00:46:15 -06:00
dependabot[bot]
feb969881b Bump libc from 0.2.101 to 0.2.103
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.101 to 0.2.103.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.101...0.2.103)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 22:49:44 +02:00
dependabot[bot]
c06efe1317 Bump anyhow from 1.0.43 to 1.0.44
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.43...1.0.44)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 22:49:38 +02:00
Tavian Barnes
04fac46c5c
Merge pull request #857 from exploide/short-help-completion
Added missing help messages to various options
2021-10-07 12:52:31 -04:00
Tavian Barnes
e0d03d170e
Merge pull request #858 from friederbluemle/fix-typo
Fix typos
2021-10-07 12:52:12 -04:00
Frieder Bluemle
fd1c3d376e
Fix typos 2021-10-06 18:38:50 +02:00
exploide
c3f786db43 added missing help messages to various options
despite they have hidden_short_help set to true, a short help message is still useful for auto-generated completions
2021-10-03 17:06:09 +02:00
Niklas Mohrin
a5f17db53a CI: Run clippy on stable and use msrv setting in clippy.toml 2021-09-03 07:36:12 +02:00
Tavian Barnes
f1a5aa0887
Merge pull request #846 from tmccombs/dep-update
Update dependencies
2021-09-02 14:40:47 -04:00
Thayne McCombs
3c619afe30 Update dependencies
in Cargo.lock and Cargo.toml
2021-09-01 17:32:57 -06:00
Tavian Barnes
476d404938
Merge pull request #817 from will459/add_no_ignore_parent
Add --no-ignore-parent flag
2021-09-01 13:22:01 -04:00
William Correia
43f5c8adc9
Add tests for --no-ignore-parent 2021-08-31 18:04:42 -04:00
David Peter
3ba90dd768 Remove --lib option 2021-08-22 16:06:04 +02:00
David Peter
87caef9513 Use --locked for cargo, enable 'cargo fmt' check 2021-08-22 16:06:04 +02:00
Thayne McCombs
78e21395b8 Make list of ignore files for --no-ignore more explicit 2021-08-15 12:52:10 +02:00
Thayne McCombs
1b52948e42 Add better documentation of vcs-ignore files.
Explicitly list which files are used for gitignore.

Fixes #354
2021-08-15 12:52:10 +02:00
Asha20
334488cab7
Add -q/--quiet/--has-match flag (#813)
Instead of printing to stdout, the program will return 1 as the exit
code if there are no matches and 0 otherwise.
2021-08-14 17:57:01 +02:00
a1346054
1c72f80ff5 fix whitespace 2021-08-14 16:21:02 +02:00
a1346054
5b4869a940 fix spelling 2021-08-14 16:21:02 +02:00
Thayne McCombs
049232439a Add item to CHANGELOG for no buffer with single thread 2021-08-11 09:38:55 +02:00
Thayne McCombs
e4730603d0 Address feedback for removing buffering when running on a single thread 2021-08-11 09:38:55 +02:00
Max Triano
154cd6e329 Clarifying comments 2021-08-11 09:38:55 +02:00
Max Triano
394e967b5f No buffering cmd output when running on 1 thread 2021-08-11 09:38:55 +02:00
Max Triano
0f0fa76c81 Just trying some things out, initial functionality 2021-08-11 09:38:55 +02:00
Thayne McCombs
1795e0e9dd Add documentation and examples of ** in glob mode
And how it should be used with the `--full-path` option.

Fixes #764.
2021-08-10 20:53:56 +02:00
Thayne McCombs
500f404c4f Mention make as a build dependency.
Fixes #743
2021-08-10 20:41:02 +02:00
Klim Tsoutsman
6a18b36037
Support --list-details on more platforms
Implement `--list-details` by using short options for `ls` to support more platforms (like BusyBox)

closes #783
2021-08-10 20:39:10 +02:00
Thayne McCombs
115ae93df9 Refactor file types check to be on impl of FileTypes
Relates to #382
2021-08-10 20:30:23 +02:00
David Peter
c06c9952b6 Add pemistahl as a maintainer 2021-08-09 23:06:00 +02:00
Peter Newman
42dce35dd7 Drop the 18.04 runs entirely 2021-08-09 16:48:06 +02:00
Peter Newman
c2e4be3d12 Add 20.04 Ubuntu builds 2021-08-09 16:48:06 +02:00
Sean Joseph
25d7c4801f Changed to better whole word example 2021-08-09 13:42:45 +02:00
Sean Joseph
d34e18a58c Added example for searching exactly a filename 2021-08-09 13:42:45 +02:00
Jacob Mischka
ba60a163fe Use local times for time functions
This patch uses Chrono for explicit date or datetime parsing, only using
humantime for its relative time parsing. The following formats are accepted:

1. Full RFC3339 parsing, requiring an explicit timezone
2. `YY-MM-DD`, defaulting to time `00:00:00` for the given date in the
   local time zone
3. `YY-MM-DD HH:MM:SS` in the local time zone

Fixes #631, #794
2021-08-09 13:40:55 +02:00
himself65
4e04d13215 Fix return out of match pattern 2021-08-09 13:36:09 +02:00
David Peter
c37592b0b7 Add tavianator as a maintainer 2021-08-09 07:34:26 +02:00
David Peter
224b7f2354 Silence wrong clippy warning 2021-08-08 23:48:20 +02:00
William Correia
f8ae334ca9
Add --no-ignore-parent flag
- Flag toggles parent checking in the `ignore` crate.  This should
  affect both git and non-git ignore files.
- Updated Changelog.
2021-08-08 17:38:24 -04:00
David Peter
b5344dac30 Improve -x/-X help text and man page description
closes #605
2021-08-08 22:58:13 +02:00
David Peter
018556a367 Add CHANGELOG entries 2021-08-08 15:04:28 +02:00