forked from pool/fdupes
ebd601a9d7
- update to 1.5.0-PR2 * new "--summarize" option * new "--recurse:" selective recursion option * new "--noprompt" option for totally automated deletion of duplicate files. * sorts duplicates (old to new) for consistent order when listing or deleteing duplicate files. * tests for early matching of files, which should help speed up the matching process when large files are involved. * warns whenever a file cannot be deleted. * bugfixes (proper file closing, zero-length files, ...) - add -p/--permissions switch so files with different permissions or uid/gid are not considered as duplicates (bnc#784670) * this mode is a default one for fdupes macro - refresh all patches - drop the fdupes-sort-output.diff - use the upstream mtime sorting - add the debian patches - see spec file for details OBS-URL: https://build.opensuse.org/request/show/138346 OBS-URL: https://build.opensuse.org/package/show/utilities/fdupes?expand=0&rev=6
59 lines
2.0 KiB
Diff
59 lines
2.0 KiB
Diff
From 299e999ba8ac1916797e4956ee774a46ef11851b Mon Sep 17 00:00:00 2001
|
|
From: Sandro Tosi <morph@debian.org>
|
|
Date: Fri, 12 Oct 2012 15:06:16 +0200
|
|
Subject: [PATCH 07/10] Disambiguate the options '--recurse' and '--recurse:'
|
|
(bts537138)
|
|
|
|
---
|
|
fdupes.1 | 12 +++++++++++-
|
|
fdupes.c | 3 ++-
|
|
2 files changed, 13 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/fdupes.1 b/fdupes.1
|
|
index 5f7c526..9263adc 100644
|
|
--- a/fdupes.1
|
|
+++ b/fdupes.1
|
|
@@ -23,7 +23,8 @@ for every directory given follow subdirectories encountered within
|
|
.TP
|
|
.B -R --recurse:
|
|
for each directory given after this option follow subdirectories
|
|
-encountered within
|
|
+encountered within (note the ':' at the end of option; see the
|
|
+Examples section below for further explanation)
|
|
.TP
|
|
.B -s --symlinks
|
|
follow symlinked directories
|
|
@@ -85,6 +86,15 @@ or
|
|
.B --sameline
|
|
is specified, spaces and backslash characters (\fB\e\fP) appearing
|
|
in a filename are preceded by a backslash character.
|
|
+
|
|
+.SH EXAMPLES
|
|
+.TP
|
|
+.B fdupes a --recurse: b
|
|
+will follow subdirectories under b, but not those under a.
|
|
+.TP
|
|
+.B fdupes a --recurse b
|
|
+will follow subdirectories under both a and b.
|
|
+
|
|
.SH CAVEATS
|
|
If fdupes returns with an error message such as
|
|
.B fdupes: error invoking md5sum
|
|
diff --git a/fdupes.c b/fdupes.c
|
|
index fe540e6..1e9e620 100644
|
|
--- a/fdupes.c
|
|
+++ b/fdupes.c
|
|
@@ -953,7 +953,8 @@ void help_text()
|
|
printf(" -r --recurse \tfor every directory given follow subdirectories\n");
|
|
printf(" \tencountered within\n");
|
|
printf(" -R --recurse: \tfor each directory given after this option follow\n");
|
|
- printf(" \tsubdirectories encountered within\n");
|
|
+ printf(" \tsubdirectories encountered within (note the ':' at\n");
|
|
+ printf(" \tthe end of the option, manpage for more details)\n");
|
|
printf(" -s --symlinks \tfollow symlinks\n");
|
|
printf(" -H --hardlinks \tnormally, when two or more files point to the same\n");
|
|
printf(" \tdisk area they are treated as non-duplicates; this\n");
|
|
--
|
|
1.7.11.5
|
|
|