/** * Return a command to list remote branches/tags without a local repository. * * @return a {@link org.eclipse.jgit.api.LsRemoteCommand} * @since 3.1 */ public static LsRemoteCommand lsRemoteRepository() { return new LsRemoteCommand(null); }
/** * Return a command object to execute a {@code ls-remote} command * * @see <a href= * "http://www.kernel.org/pub/software/scm/git/docs/git-ls-remote.html" * >Git documentation about ls-remote</a> * @return a {@link org.eclipse.jgit.api.LsRemoteCommand} used to collect * all optional parameters and to finally execute the {@code status} * command */ public LsRemoteCommand lsRemote() { return new LsRemoteCommand(repo); }
/** * Returns a command object to execute a {@code ls-remote} command * * @see <a * href="http://www.kernel.org/pub/software/scm/git/docs/git-ls-remote.html" * >Git documentation about ls-remote</a> * @return a {@link LsRemoteCommand} used to collect all optional parameters * and to finally execute the {@code status} command */ public LsRemoteCommand lsRemote() { return new LsRemoteCommand(repo); }
/** * Return a command object to execute a {@code ls-remote} command * * @see <a href= * "http://www.kernel.org/pub/software/scm/git/docs/git-ls-remote.html" * >Git documentation about ls-remote</a> * @return a {@link org.eclipse.jgit.api.LsRemoteCommand} used to collect * all optional parameters and to finally execute the {@code status} * command */ public LsRemoteCommand lsRemote() { return new LsRemoteCommand(repo); }
/** * Returns a command to list remote branches/tags without a local * repository. * * @return a {@link LsRemoteCommand} * @since 3.1 */ public static LsRemoteCommand lsRemoteRepository() { return new LsRemoteCommand(null); }
/** * Return a command to list remote branches/tags without a local repository. * * @return a {@link org.eclipse.jgit.api.LsRemoteCommand} * @since 3.1 */ public static LsRemoteCommand lsRemoteRepository() { return new LsRemoteCommand(null); }
final LsRemoteCommand lsCmd = new LsRemoteCommand(null); final List<String> repos = Arrays.asList( "https://github.com/MuchContact/java.git", "git@github.com:MuchContact/java.git"); for (String gitRepo: repos){ lsCmd.setRemote(gitRepo); System.out.println(lsCmd.call().toString()); }
Collection<Ref> result = new LsRemoteCommand(null).setRemote(url).call(); return !result.isEmpty(); } catch (TransportException ex) {
throw new IllegalArgumentException(Assert.formatNotEmpty("Remote")); final LsRemoteCommand lsRemote = new LsRemoteCommand(repository); lsRemote.setRemote(remote); try {
LsRemoteCommand lsRemote = new LsRemoteCommand(repo); if (headsOnly) { lsRemote.setHeads(headsOnly);