Class MkBranch

  • All Implemented Interfaces:
    Branch

    public final class MkBranch
    extends Object
    implements Branch
    Mock Git branch.
    Since:
    0.24
    Version:
    $Id: 2e6784ca311d38a19df783088ec74cf2ea9feb2b $
    Author:
    Chris Rebert (github@rebertia.com)
    • Method Detail

      • repo

        public Repo repo()
        Description copied from interface: Branch
        The repo we're in.
        Specified by:
        repo in interface Branch
        Returns:
        Repo
      • name

        public String name()
        Description copied from interface: Branch
        Name of the branch.
        Specified by:
        name in interface Branch
        Returns:
        Branch name
      • commit

        public Commit commit()
        Description copied from interface: Branch
        Commit that the branch currently points to.
        Specified by:
        commit in interface Branch
        Returns:
        Commit the branch currently points to