| Line |
Branch |
Exec |
Source |
| 1 |
|
|
/** |
| 2 |
|
|
* This file is part of the CernVM File System. |
| 3 |
|
|
*/ |
| 4 |
|
|
|
| 5 |
|
|
#ifndef CVMFS_SWISSKNIFE_REFLOG_H_ |
| 6 |
|
|
#define CVMFS_SWISSKNIFE_REFLOG_H_ |
| 7 |
|
|
|
| 8 |
|
|
#include <string> |
| 9 |
|
|
|
| 10 |
|
|
#include "swissknife.h" |
| 11 |
|
|
|
| 12 |
|
|
namespace manifest { |
| 13 |
|
|
class Reflog; |
| 14 |
|
|
class Manifest; |
| 15 |
|
|
} // namespace manifest |
| 16 |
|
|
|
| 17 |
|
|
namespace swissknife { |
| 18 |
|
|
|
| 19 |
|
|
class CommandReconstructReflog : public Command { |
| 20 |
|
|
public: |
| 21 |
|
✗ |
virtual std::string GetName() const { return "reconstruct_reflog"; } |
| 22 |
|
✗ |
virtual std::string GetDescription() const { |
| 23 |
|
|
return "Bootstraps a Reference Log from Catalog and History chains. This " |
| 24 |
|
✗ |
"is used for both legacy repository migration and repairs."; |
| 25 |
|
|
} |
| 26 |
|
|
virtual ParameterList GetParams() const; |
| 27 |
|
|
int Main(const ArgumentList &args); |
| 28 |
|
|
|
| 29 |
|
|
protected: |
| 30 |
|
|
void AddStaticManifestObjects(manifest::Reflog *reflog, |
| 31 |
|
|
manifest::Manifest *manifest) const; |
| 32 |
|
|
}; |
| 33 |
|
|
|
| 34 |
|
|
}; // namespace swissknife |
| 35 |
|
|
|
| 36 |
|
|
#endif // CVMFS_SWISSKNIFE_REFLOG_H_ |
| 37 |
|
|
|