Skip to content

Commit

Permalink
cmdline: use --hidden and --hardlinked also on -T minimaldirs & co.
Browse files Browse the repository at this point in the history
  • Loading branch information
sahib committed Dec 18, 2014
1 parent c9a9f68 commit fcf1f44
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docs/faq.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Frequently Asked Questions
==========================

``rmlint`` finds more/less dupes than tool x!
---------------------------------------------
``rmlint`` finds more/less dupes than tool **X**!
-------------------------------------------------

Make sure that *none* of the following applies to you:

Expand All @@ -13,10 +13,11 @@ by default. Suspicious options you should look into are:
* ``--hidden``: Disabled by default, since it might screw up ``.git/`` and similar directories.
* ``--hardlinked``: Might find larger amount files, but not more lint itself.
* ``--followlinks``: Might lead ``rmlint`` to different places on the filesystem.
* ``--merged-directories``: pulls in both ``--hidden`` and ``--hardlinked``.
* ``--merge-directories``: pulls in both ``--hidden`` and ``--hardlinked``.

If there's still a difference, check with another algorithm. In particular use
``-ppp`` to enable paranoid mode. Also make sure to have ``-D / --merge-directories`` disabled to see the raw number of duplicate files.
``-ppp`` to enable paranoid mode. Also make sure to have ``-D``
(``--merge-directories``) disabled to see the raw number of duplicate files.

Still here? Maybe talk to us on the `issue tracker`_.

Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ to remove it. It is able to find:
.. hlist::
:columns: 2

+ Duplicate files.
+ Duplicate files & directories.
+ Nonstripped Binaries
+ Broken symlinks.
+ Empty files.
Expand Down
5 changes: 5 additions & 0 deletions src/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ static void rm_cmd_parse_lint_types(RmSettings *settings, const char *lint_strin
}
}

if(settings->merge_directories) {
settings->ignore_hidden = false;
settings->find_hardlinked_dupes = true;
}

/* clean up */
g_strfreev(lint_types);
}
Expand Down

0 comments on commit fcf1f44

Please sign in to comment.