From 7ea9119ffaa9d63faf15bfa8dd68b1cfb2289baa Mon Sep 17 00:00:00 2001 From: gilbertchen Date: Fri, 10 Nov 2017 11:34:03 -0500 Subject: [PATCH] Created diff (markdown) --- diff.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 diff.md diff --git a/diff.md b/diff.md new file mode 100644 index 0000000..f2d0271 --- /dev/null +++ b/diff.md @@ -0,0 +1,22 @@ +``` +SYNOPSIS: + duplicacy diff - Compare two snapshots or two revisions of a file + +USAGE: + duplicacy diff [command options] [] + +OPTIONS: + -id diff with the snapshot with the specified id + -r [+] the revision number of the snapshot + -hash compute the hashes of on-disk files + -storage retrieve files from the specified storage +``` +The *diff* command compares the same file in two different snapshots if a file is given, otherwise compares the two snapshots. + +The file must be specified with a path relative to the repository. + +You can specify a different snapshot id rather than the default snapshot id. + +If only one revision is given by `-r`, the right hand side of the comparison will be the on-disk file. The `-hash` option can then instruct this command to compute the hash of the file. + +You can use the `-storage` option to select a different storage other than the default one.