summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
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
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')
-rw-r--r--org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties1
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Repo.java4
2 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties b/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
index 9b874c7356..7d5b87fdd9 100644
--- a/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
+++ b/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
@@ -278,6 +278,7 @@ usage_forceCheckout=when switching branches, proceed even if the index or the wo
usage_forceCreateBranchEvenExists=force create branch even exists
usage_forceReplacingAnExistingTag=force replacing an existing tag
usage_getAndSetOptions=Get and set repository or global options
+usage_groups=Restrict manifest projects to ones with specified group(s), use "-" for excluding [default|all|G1,G2,G3|G4,-G5,-G6]
usage_hostnameOrIpToListenOn=hostname (or ip) to listen on
usage_indexFileFormatToCreate=index file format to create
usage_ignoreWhitespace=ignore all whitespace
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();
}
}