Merge pull request #1176 from tmccombs/changed-after
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Add --changed-after alias.
authored by David Peter · committed by GitHub · parents db2590d, 317a0c3 · Browse files · 3 files·+18 added−5 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+18 added−5 removed
- other:+18 added−5 removed
Provenance
- Commit
8dda499- Tree
8e41a3c- Author
David Peter <sharkdp@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent 1
db2590d- Parent 2
317a0c3
3 files changed+18 added−5 removed
modified:doc/fd.1+9 added-3 removed
284 unmodified lines285 Files with modification times greater than the argument will be returned.286 The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point287 in time in either full RFC3339 format with time zone, or as a date or datetime in the288 local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).289+\fB\-\-change-newer-than\fR,290+.B --newer291+or289-.B --change-newer-than290-can be used as an alias.292+.B --changed-after293+can be used as aliases.294 295 Examples:296 \-\-changed-within 2weeks297 \-\-change-newer-than "2018-10-27 10:00:00"298+ \-\-newer 2018-10-27299 .TP300 .BI "\-\-changed-before " date|duration301 Filter results based on the file modification time.302 Files with modification times less than the argument will be returned.303 The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point304 in time in either full RFC3339 format with time zone, or as a date or datetime in the305 local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).306 .B --change-older-than307+or308+.B --older303-can be used as an alias.309+can be used as aliases.310 311 Examples:312 \-\-changed-before "2018-10-27 10:00:00"313 \-\-change-older-than 2weeks154 unmodified linesmodified:src/cli.rs+7 added-2 removed
333 unmodified lines334 #[arg(335 long,336 alias("change-newer-than"),337 alias("newer"),338+ alias("changed-after"),339 value_name = "date|dur",339- long_help = "Filter results based on the file modification time. The argument can be provided \340+ long_help = "Filter results based on the file modification time. \341+ Files with modification times greater than the argument are returned. \342+ The argument can be provided \343 as a specific point in time (YYYY-MM-DD HH:MM:SS) or as a duration (10h, 1d, 35min). \344 If the time is not specified, it defaults to 00:00:00. \345 '--change-newer-than' or '--newer' can be used as aliases.\n\346 Examples:\n \8 unmodified lines355 long,356 alias("change-older-than"),357 alias("older"),358 value_name = "date|dur",356- long_help = "Filter results based on the file modification time. The argument can be provided \359+ long_help = "Filter results based on the file modification time. \360+ Files with modification times less than the argument are returned. \361+ The argument can be provided \362 as a specific point in time (YYYY-MM-DD HH:MM:SS) or as a duration (10h, 1d, 35min). \363 '--change-older-than' or '--older' can be used as aliases.\n\364 Examples:\n \365 --changed-before '2018-10-27 10:00:00'\n \425 unmodified linesmodified:CHANGELOG.md+2 added
1 # Upcoming release2 3 ## Features4 5+- Added `--changed-after` as alias for `--changed-within`, to have a name consistent with `--changed-before`.6 7+8 ## Changes9 10 - Breaking: On Unix-like systems, `--type executable` now additionally checks if11 the file is executable by the current user, see #1106 and #1169 (@ptipiak)657 unmodified lines