aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2014-11-24 00:52:45 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2014-12-16 15:29:08 +0100
commit8812e6f3f60dc6bc86ba57c3e82288780f735f6b (patch)
tree6b37c022005062e9c6243882e7096687feebe500 /org.eclipse.jgit.pgm/src/org
parent490660a7c61d6226ac52d0e00198dd90a3891115 (diff)
downloadjgit-8812e6f3f60dc6bc86ba57c3e82288780f735f6b.tar.gz
jgit-8812e6f3f60dc6bc86ba57c3e82288780f735f6b.zip
[pgm] Add option --tags for ls-remote
Bug: 444072 Change-Id: I52b470924609fc201e078d9d232aad257506728d Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java
index 096d8528d4..6262ad2469 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java
@@ -61,6 +61,9 @@ class LsRemote extends TextBuiltin {
@Option(name = "--heads", usage = "usage_lsRemoteHeads")
private boolean heads;
+ @Option(name = "--tags", usage = "usage_lsRemoteTags", aliases = { "-t" })
+ private boolean tags;
+
@Option(name = "--timeout", metaVar = "metaVar_service", usage = "usage_abortConnectionIfNoActivity")
int timeout = -1;
@@ -70,7 +73,7 @@ class LsRemote extends TextBuiltin {
@Override
protected void run() throws Exception {
LsRemoteCommand command = Git.lsRemoteRepository().setRemote(remote)
- .setTimeout(timeout).setHeads(heads);
+ .setTimeout(timeout).setHeads(heads).setTags(tags);
TreeSet<Ref> refs = new TreeSet<Ref>(new Comparator<Ref>() {
public int compare(Ref r1, Ref r2) {