aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org
diff options
context:
space:
mode:
authorYuxuan 'fishy' Wang <fishywang@google.com>2014-03-24 12:40:04 -0700
committerYuxuan 'fishy' Wang <fishywang@google.com>2014-04-23 23:03:00 -0700
commita44a687fedbf1559277b8e6706819aa9be7bce39 (patch)
treeb4a58e15a30d58d09246a89aa3d8d9da433c381b /org.eclipse.jgit.pgm/src/org
parent1f3b75c9ee5a0ae09ecba136a8048e67107f5d1b (diff)
downloadjgit-a44a687fedbf1559277b8e6706819aa9be7bce39.tar.gz
jgit-a44a687fedbf1559277b8e6706819aa9be7bce39.zip
Added groups support to repo subcommand.
Change-Id: Id0e7663b6ac4f6938fdcacaf2158107b6285fc25 Signed-off-by: Yuxuan 'fishy' Wang <fishywang@google.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Repo.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Repo.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Repo.java
index 9d18cec760..9b191e6796 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Repo.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Repo.java
@@ -52,6 +52,9 @@ class Repo extends TextBuiltin {
@Option(name = "--base-uri", aliases = { "-u" }, usage = "usage_baseUri")
private String uri;
+ @Option(name = "--groups", aliases = { "-g" }, usage = "usage_groups")
+ private String groups = "default"; //$NON-NLS-1$
+
@Argument(required = true, usage = "usage_pathToXml")
private String path;
@@ -60,6 +63,7 @@ class Repo extends TextBuiltin {
new RepoCommand(db)
.setURI(uri)
.setPath(path)
+ .setGroups(groups)
.call();
}
}