shithub: clone

Download patch

ref: 229c8e6ee592b9b80c39e116f44a14e216e36580
parent: 7da6f37d933dcf4d3d053d809ce02bf2683cb9a8
author: Noam Preil <[email protected]>
date: Fri Nov 24 13:30:34 EST 2023

update documentation

--- a/clone.c
+++ b/clone.c
@@ -55,7 +55,7 @@
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-guxT] [-b blocksize] [-p fileprocs:blockprocs] from ... to\n", argv0);
+	fprint(2, "usage: %s [-guxTnvd] [-b blocksize] [-p fileprocs:blockprocs] from ... to\n", argv0);
 	exits("usage");
 }
 
--- a/clone.man
+++ b/clone.man
@@ -4,7 +4,7 @@
 .SH SYNOPSYS
 .B clone
 [
-.B -guxT
+.B -guxTnvd
 ]
 [
 .B -b
@@ -51,7 +51,7 @@
 If multiple source files (directories) are given,
 they are copied into the
 .I to
-directory, which is created if neccessary.
+directory, which is created if necessary.
 .PP
 The
 .I -x
@@ -86,6 +86,25 @@
 where a file is fully copied into a temporary file
 in the target directory, the target file is removed,
 and, finally, the temporary file is renamed.
+.PP
+The
+.I -v
+option enables verbose behavior, printing all files
+and directories copied.
+.PP
+The
+.I -n
+option causes only new files to be copied - if a
+destination file already exists, it is skipped.
+.PP
+The
+.I -d
+option causes no work to be done - combined with the
+.I -v
+option, it results in a dry run, printing those files
+which
+.I would
+be copied during an equivalent operation.
 .PP
 .SH SOURCE
 .B git://code.a-b.xyz/clone