Interface Branch

  • All Known Implementing Classes:
    MkBranch, RtBranch

    @Immutable
    public interface Branch
    Git branch.
    Since:
    0.24
    Version:
    $Id: dae1122d2681074c80d84df5c6b29c8f23dc6160 $
    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