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 given "
25 "by a tag name or by the root hash. In the latter case, the hash needs to "
26 "start with a '@' symbol to distinguish it from a name.";
29 return "[options] <repository name / url>";
32 std::vector<std::string> e;
33 e.push_back(
"-k /etc/cvmfs/keys/cern.ch "
34 "http://cvmfs-stratum-one.cern.ch/cvmfs/grid.cern.ch "
35 " # use with any repository for which public keys are available");
36 e.push_back(
"myrepo.cvmfs.io "
37 "# use with a local stratum 0 or stratum 1 copy");
38 e.push_back(
"--from version1 --to version2 "
39 "# compare tags for the one and only stratum 0 or stratum 1 copy "
40 "available on this node");
46 "Path to the directory containing the repository public key"));
48 "Produce machine readable output"));
50 "The source tag name [default='trunk-previous']"));
52 "The destination tag name [default='trunk']"));
54 "Show the diff of the unpublished changes in the open transaction"));
57 "Ignore changes that only differ in their timestamps"));
61 virtual int Main(
const Options &options);
66 #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)