public class JGitBranchCommand extends AbstractBranchCommand implements GitCommand
Constructor and Description |
---|
JGitBranchCommand() |
Modifier and Type | Method and Description |
---|---|
protected ScmResult |
executeBranchCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
String branch,
String message) |
static Set<String> |
getShortLocalBranchNames(org.eclipse.jgit.api.Git git)
gets a set of names of the available branches in the given repo
|
executeBranchCommand, executeCommand
execute, getLogger, setLogger
public JGitBranchCommand()
protected ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, String branch, String message) throws ScmException
executeBranchCommand
in class AbstractBranchCommand
ScmException
public static Set<String> getShortLocalBranchNames(org.eclipse.jgit.api.Git git) throws org.eclipse.jgit.api.errors.GitAPIException
git
- the repo to list the branches fororg.eclipse.jgit.api.errors.GitAPIException
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.