org.eclipse.jgit.api
Class LsRemoteCommand

java.lang.Object
  extended by org.eclipse.jgit.api.GitCommand<Collection<Ref>>
      extended by org.eclipse.jgit.api.LsRemoteCommand
All Implemented Interfaces:
Callable<Collection<Ref>>

public class LsRemoteCommand
extends GitCommand<Collection<Ref>>

The ls-remote command

See Also:
Git documentation about ls-remote

Field Summary
 
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
 
Constructor Summary
LsRemoteCommand(Repository repo)
           
 
Method Summary
 Collection<Ref> call()
           
 void setHeads(boolean heads)
          Include refs/heads in references results
 LsRemoteCommand setRemote(String remote)
          The remote (uri or name) used for the fetch operation.
 void setTags(boolean tags)
          Include refs/tags in references results
 void setUploadPack(String uploadPack)
          The full path of git-upload-pack on the remote host
 
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LsRemoteCommand

public LsRemoteCommand(Repository repo)
Parameters:
repo -
Method Detail

setRemote

public LsRemoteCommand setRemote(String remote)
The remote (uri or name) used for the fetch operation. If no remote is set, the default value of Constants.DEFAULT_REMOTE_NAME will be used.

Parameters:
remote -
Returns:
this
See Also:
Constants.DEFAULT_REMOTE_NAME

setHeads

public void setHeads(boolean heads)
Include refs/heads in references results

Parameters:
heads -

setTags

public void setTags(boolean tags)
Include refs/tags in references results

Parameters:
tags -

setUploadPack

public void setUploadPack(String uploadPack)
The full path of git-upload-pack on the remote host

Parameters:
uploadPack -

call

public Collection<Ref> call()
                     throws Exception
Throws:
Exception


Copyright © 2011. All Rights Reserved.