Function getFullBranchRef

  • Gets the full reference path for a given branch. branch here is the short branch name, e.g. branch-name.

    Parameters

    • options: GitBranchOptions

    Returns string | null

    The full branch reference (e.g., refs/heads/branch-name) if found, null otherwise

  • Parameters

    • branch: string
    • cwd: string

    Returns string | null

    Deprecated

    Use object params version