From a44a687fedbf1559277b8e6706819aa9be7bce39 Mon Sep 17 00:00:00 2001 From: Yuxuan 'fishy' Wang Date: Mon, 24 Mar 2014 12:40:04 -0700 Subject: Added groups support to repo subcommand. Change-Id: Id0e7663b6ac4f6938fdcacaf2158107b6285fc25 Signed-off-by: Yuxuan 'fishy' Wang --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Repo.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit') 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(); } } -- cgit v1.2.3