Class ListBranchCommand

    • Constructor Detail

      • ListBranchCommand

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

      • setListMode

        public ListBranchCommand setListMode​(ListBranchCommand.ListMode listMode)
        Set the list mode
        Parameters:
        listMode - optional: corresponds to the -r/-a options; by default, only local branches will be listed
        Returns:
        this instance
      • setContains

        public ListBranchCommand setContains​(String containsCommitish)
        If this is set, only the branches that contain the specified commit-ish as an ancestor are returned.
        Parameters:
        containsCommitish - a commit ID or ref name
        Returns:
        this instance
        Since:
        3.4