Skip to content

Commit

Permalink
Docs: update documentation for new --rank-by option
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeSpotRun committed Mar 15, 2021
1 parent 751c670 commit 0c45c00
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format follows [keepachangelog.com]. Please stick to it.

## [2.11.0 Evolving Echidna -- unreleased]

### Added

* Implement --rank-by f option to rank originals by directory full path

## [2.10.1 Ludicrous Lemur] -- 2020-06-13

### Added
Expand Down
3 changes: 2 additions & 1 deletion docs/rmlint.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ Original Detection Options
- **o**: keep file with lowest number of hardlinks outside of the paths traversed by ``rmlint``.
- **O**: keep file with highest number of hardlinks outside of the paths traversed by ``rmlint``.

Alphabetical sort will only use the basename of the file and ignore its case.
Alphabetical sort [aA] will only use the basename of the file and ignore its case.
Alphabetical sort on dir [fF] uses the full path (excluding basename) and is case-sensitive.
One can have multiple criteria, e.g.: ``-S am`` will choose first alphabetically; if tied then by mtime.
**Note:** original path criteria (specified using `//`) will always take first priority over `-S` options.

Expand Down
7 changes: 5 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ Here's a table of letters you can supply to the ``-S`` option:

===== ========================================================================================== ===== =================================
**m** keep lowest mtime (oldest) **M** keep highest mtime (newest)
**a** keep first alphabetically **A** keep last alphabetically
**a** keep first basename alphabetically **A** keep last basename alphabetically
**f** keep first dir path alphabetically **F** keep last dir path alphabetically
**p** keep first named path **P** keep last named path
**d** keep path with lowest depth **D** keep path with highest depth
**l** keep path with shortest basename **L** keep path with longest basename
Expand All @@ -532,7 +533,9 @@ specified first in the rmlint command, then finally based on alphabetical order
of file name. Note that "original directory" criteria (see below) take
precedence over any ``-S`` options.

Alphabetical sort will only use the basename of the file and ignore its case.
Alphabetical sort on basename (a or A) will only use the basename of the file and ignore its case.
Alphabetical sort on dir path (f or F) will use the full path of the file's directory and is case-sensitive.

One can have multiple criteria, e.g.: ``-S am`` will choose first alphabetically; if tied then by mtime.
**Note:** original path criteria (specified using `//`) will always take first priority over `-S` options.

Expand Down

0 comments on commit 0c45c00

Please sign in to comment.