Skip to content
Myr

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

3 files+18 added−5 removed

modified:doc/fd.1+9 added-3 removed
284 unmodified lines
285Files with modification times greater than the argument will be returned.286The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point287in time in either full RFC3339 format with time zone, or as a date or datetime in the288local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).289\fB\-\-change-newer-than\fR,290.B --newer291or289.B --change-newer-than290can be used as an alias.292.B --changed-after293can be used as aliases.294295Examples:296 \-\-changed-within 2weeks297 \-\-change-newer-than "2018-10-27 10:00:00"298 \-\-newer 2018-10-27299.TP300.BI "\-\-changed-before " date|duration301Filter results based on the file modification time.302Files with modification times less than the argument will be returned.303The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point304in time in either full RFC3339 format with time zone, or as a date or datetime in the305local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).306.B --change-older-than307or308.B --older303can be used as an alias.309can be used as aliases.310311Examples:312 \-\-changed-before "2018-10-27 10:00:00"313 \-\-change-older-than 2weeks
154 unmodified lines
modified:src/cli.rs+7 added-2 removed
333 unmodified lines
334 #[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 lines
355 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 lines
modified:CHANGELOG.md+2 added
1# Upcoming release23## Features45- Added `--changed-after` as alias for `--changed-within`, to have a name consistent with `--changed-before`.678## Changes910- 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