usage_convertRefStorage=Convert ref storage to reftable
usage_convertRefStorageBackup=Create backup of old ref storage format
usage_convertRefStorageFormat=Format to convert to (reftable or refdir)
+usage_convertRefStorageRefLogs=Write reflogs to reftable
usage_createBranchAndCheckout=create branch and check out
usage_deleteBranchEvenIfNotMerged=delete branch (even if not merged)
usage_deleteFullyMergedBranch=delete fully merged branch
"-b" }, usage = "usage_convertRefStorageBackup")
private boolean backup = true;
+ @Option(name = "--reflogs", handler = ExplicitBooleanOptionHandler.class, aliases = {
+ "-r" }, usage = "usage_convertRefStorageRefLogs")
+ private boolean writeLogs = true;
+
/** {@inheritDoc} */
@Override
protected void run() throws Exception {
- ((FileRepository) db).convertRefStorage(format, true, backup);
+ ((FileRepository) db).convertRefStorage(format, writeLogs, backup);
}
}