@Test public void testCreateBranch() throws IOException, JavaGitException { branch.createBranch(repoDirectory, branchA); branch.createBranch(repoDirectory, branchB); }
public GitBranchResponse createBranch(File repositoryPath, Ref branchName) throws IOException, JavaGitException { CheckUtilities.checkNullArgument(repositoryPath, "repository path"); CheckUtilities.checkNullArgument(branchName, "branch name"); CheckUtilities.validateArgumentRefType(branchName, Ref.RefType.BRANCH, "branch name"); IClient client = ClientManager.getInstance().getPreferredClient(); IGitBranch gitBranch = client.getGitBranchInstance(); return gitBranch.createBranch(repositoryPath, branchName); }
GitBranch { public GitBranchResponse createBranch(File repositoryPath, Ref branchName) throws IOException, JavaGitException { CheckUtilities.checkNullArgument(repositoryPath, "repository path"); CheckUtilities.checkNullArgument(branchName, "branch name"); CheckUtilities.validateArgumentRefType(branchName, Ref.RefType.BRANCH, "branch name"); IClient client = ClientManager.getInstance().getPreferredClient(); IGitBranch gitBranch = client.getGitBranchInstance(); return gitBranch.createBranch(repositoryPath, branchName); } }
GitBranch { public GitBranchResponse createBranch(File repositoryPath, Ref branchName) throws IOException, JavaGitException { CheckUtilities.checkNullArgument(repositoryPath, "repository path"); CheckUtilities.checkNullArgument(branchName, "branch name"); CheckUtilities.validateArgumentRefType(branchName, Ref.RefType.BRANCH, "branch name"); IClient client = ClientManager.getInstance().getPreferredClient(); IGitBranch gitBranch = client.getGitBranchInstance(); return gitBranch.createBranch(repositoryPath, branchName); }  }
GitBranch { public GitBranchResponse createBranch(File repositoryPath, Ref branchName) throws IOException, JavaGitException { CheckUtilities.checkNullArgument(repositoryPath, "repository path"); CheckUtilities.checkNullArgument(branchName, "branch name"); CheckUtilities.validateArgumentRefType(branchName, Ref.RefType.BRANCH, "branch name"); IClient client = ClientManager.getInstance().getPreferredClient(); IGitBranch gitBranch = client.getGitBranchInstance(); return gitBranch.createBranch(repositoryPath, branchName); }  GitBranchResponse branch(File repositoryPath); GitBranchResponse branch(File repositoryPath, GitBranchOptions options); GitBranchResponse deleteBranch(File repositoryPath, boolean forceDelete, boolean remote, 
      Ref branchName); GitBranchResponse deleteBranch(File repositoryPath, boolean forceDelete, boolean remote, 
      List<Ref> branchList); GitBranchResponse renameBranch(File repositoryPath, boolean forceRename, Ref newName); GitBranchResponse renameBranch(File repositoryPath, boolean forceRename, Ref oldName, 
      Ref newName); GitBranchResponse createBranch(File repositoryPath, Ref branchName); GitBranchResponse createBranch(File repositoryPath, GitBranchOptions options, 
      Ref branchName); GitBranchResponse createBranch(File repositoryPath, Ref branchName, Ref startPoint); GitBranchResponse createBranch(File repositoryPath, GitBranchOptions options, 
      Ref branchName, Ref startPoint); }
GitBranch { public GitBranchResponse createBranch(File repositoryPath, Ref branchName) throws IOException, JavaGitException { CheckUtilities.checkNullArgument(repositoryPath, "repository path"); CheckUtilities.checkNullArgument(branchName, "branch name"); CheckUtilities.validateArgumentRefType(branchName, Ref.RefType.BRANCH, "branch name"); IClient client = ClientManager.getInstance().getPreferredClient(); IGitBranch gitBranch = client.getGitBranchInstance(); return gitBranch.createBranch(repositoryPath, branchName); }  GitBranchResponse branch(File repositoryPath); GitBranchResponse branch(File repositoryPath, GitBranchOptions options); GitBranchResponse deleteBranch(File repositoryPath, boolean forceDelete, boolean remote, 
      Ref branchName); GitBranchResponse deleteBranch(File repositoryPath, boolean forceDelete, boolean remote, 
      List<Ref> branchList); GitBranchResponse renameBranch(File repositoryPath, boolean forceRename, Ref newName); GitBranchResponse renameBranch(File repositoryPath, boolean forceRename, Ref oldName, 
      Ref newName); GitBranchResponse createBranch(File repositoryPath, Ref branchName); GitBranchResponse createBranch(File repositoryPath, GitBranchOptions options, 
      Ref branchName); GitBranchResponse createBranch(File repositoryPath, Ref branchName, Ref startPoint); GitBranchResponse createBranch(File repositoryPath, GitBranchOptions options, 
      Ref branchName, Ref startPoint);  }