aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-12-14 23:14:50 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2019-12-15 10:15:49 +0100
commitc2a3ce79654214ba1bd29137e42786dd98bc3e2f (patch)
treeb6443b47ce8d31362dbcb6e10f764d316ea783c0 /org.eclipse.jgit.pgm/src
parentdbe915def18d9b4dbadfc972d648aaa38462cd17 (diff)
downloadjgit-c2a3ce79654214ba1bd29137e42786dd98bc3e2f.tar.gz
jgit-c2a3ce79654214ba1bd29137e42786dd98bc3e2f.zip
pgm: add option if reflogs should be written when converting to reftable
Change-Id: Ie1c38121005965e63015d9a2af26a1caa88d73fa Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ConvertRefStorage.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ConvertRefStorage.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ConvertRefStorage.java
index 3f3cd12a0e..d5a23be66f 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ConvertRefStorage.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ConvertRefStorage.java
@@ -57,9 +57,13 @@ class ConvertRefStorage extends TextBuiltin {
"-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);
}
}