Class ListBranchCommand

java.lang.Object
org.eclipse.jgit.api.GitCommand<List<Ref>>
org.eclipse.jgit.api.ListBranchCommand
All Implemented Interfaces:
Callable<List<Ref>>

public class ListBranchCommand extends GitCommand<List<Ref>>
Used to obtain a list of branches.

In case HEAD is detached (it points directly to a commit), it is also returned in the results.

See Also:
  • Constructor Details

    • ListBranchCommand

      protected ListBranchCommand(Repository repo)
      Constructor for ListBranchCommand.
      Parameters:
      repo - a Repository object.
  • Method Details