5 #ifndef CVMFS_PUBLISH_CMD_DIFF_H_
6 #define CVMFS_PUBLISH_CMD_DIFF_H_
17 virtual std::string
GetName()
const {
return "diff"; }
19 return "Show the change set between two repository revisions";
22 return "Shows the added, removed, and modified files between any two "
23 "repository revisions. By default, shows the difference between the "
24 "current and the previous revision. The repository revision can be "
26 "by a tag name or by the root hash. In the latter case, the hash "
28 "start with a '@' symbol to distinguish it from a name.";
31 return "[options] <repository name / url>";
34 std::vector<std::string> e;
36 "-k /etc/cvmfs/keys/cern.ch "
37 "http://cvmfs-stratum-one.cern.ch/cvmfs/grid.cern.ch "
38 " # use with any repository for which public keys are available");
39 e.push_back(
"myrepo.cvmfs.io "
40 "# use with a local stratum 0 or stratum 1 copy");
42 "--from version1 --to version2 "
43 "# compare tags for the one and only stratum 0 or stratum 1 copy "
44 "available on this node");
50 "keychain",
'k',
"directory",
51 "Path to the directory containing the repository public key"));
53 "Produce machine readable output"));
56 "The source tag name [default='trunk-previous']"));
59 "The destination tag name [default='trunk']"));
62 "Show the diff of the unpublished changes in the open transaction"));
65 "ignore-timediff",
'i',
66 "Ignore changes that only differ in their timestamps"));
70 virtual int Main(
const Options &options);
75 #endif // CVMFS_PUBLISH_CMD_DIFF_H_
virtual std::string GetBrief() const
static Parameter Optional(const std::string &key, char short_key, const std::string &arg_name, const std::string &desc)
virtual std::vector< std::string > DoGetExamples() const
virtual ParameterList GetParams() const
static Parameter Switch(const std::string &key, char short_key, const std::string &desc)
virtual std::string GetName() const
virtual std::string GetUsage() const
virtual std::string GetDescription() const
std::vector< Parameter > ParameterList
virtual int Main(const Options &options)