Interface Branch

  • All Known Implementing Classes:
    MkBranch, RtBranch

    @Immutable
    public interface Branch
    Git branch.
    Since:
    0.24
    Version:
    $Id: 43ed683eb9c6a6dbaf8f7c47489897f1d4691fef $
    Author:
    Chris Rebert (github@rebertia.com)
    See Also:
    List Branches API
    • Method Detail

      • repo

        Repo repo()
        The repo we're in.
        Returns:
        Repo
      • name

        String name()
        Name of the branch.
        Returns:
        Branch name
      • commit

        Commit commit()
        Commit that the branch currently points to.
        Returns:
        Commit the branch currently points to