Skip to content

Commit

Permalink
docs(filter): document --cachedir-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
SIGSTACKFAULT committed May 2, 2024
1 parent 4ba29d0 commit 79ae70d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ eza’s options are almost, but not quite, entirely unlike `ls`’s.
- **-f**, **--only-files**: list only files
- **--git-ignore**: ignore files mentioned in `.gitignore`
- **-I**, **--ignore-glob=(globs)**: glob patterns (pipe-separated) of files to ignore
- **--cachedir-ignore**: Ignore directories with a `CACHEDIR.TAG` file.

Pass the `--all` option twice to also show the `.` and `..` directories.

Expand Down
3 changes: 3 additions & 0 deletions man/eza.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ Sort fields starting with a capital letter will sort uppercase before lowercase:
`-I`, `--ignore-glob=GLOBS`
: Glob patterns, pipe-separated, of files to ignore.

`--ignore-cachedir`
: Ignore directories with a 'CACHEDIR.TAG' file.

`--git-ignore` [if eza was built with git support]
: Do not list files that are ignored by Git.

Expand Down
3 changes: 2 additions & 1 deletion src/options/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ FILTERING AND SORTING OPTIONS
--group-directories-first list directories before other files
-D, --only-dirs list only directories
-f, --only-files list only files
-I, --ignore-glob GLOBS glob patterns (pipe-separated) of files to ignore";
-I, --ignore-glob GLOBS glob patterns (pipe-separated) of files to ignore
--cachedir-ignore ignore directories with a 'CACHEDIR.TAG' file";

static GIT_FILTER_HELP: &str = " \
--git-ignore ignore files mentioned in '.gitignore'";
Expand Down

0 comments on commit 79ae70d

Please sign in to comment.