Class CreateBranchCommand

    • Constructor Detail

      • CreateBranchCommand

        protected CreateBranchCommand​(Repository repo)
        Parameters:
        repo -
    • Method Detail

      • setName

        public CreateBranchCommand setName​(java.lang.String name)
        Parameters:
        name - the name of the new branch
        Returns:
        this instance
      • setForce

        public CreateBranchCommand setForce​(boolean force)
        Parameters:
        force - if true and the branch with the given name already exists, the start-point of an existing branch will be set to a new start-point; if false, the existing branch will not be changed
        Returns:
        this instance
      • setStartPoint

        public CreateBranchCommand setStartPoint​(java.lang.String startPoint)
        Parameters:
        startPoint - corresponds to the start-point option; if null, the current HEAD will be used
        Returns:
        this instance
      • setStartPoint

        public CreateBranchCommand setStartPoint​(RevCommit startPoint)
        Parameters:
        startPoint - corresponds to the start-point option; if null, the current HEAD will be used
        Returns:
        this instance