Function getShortBranchName

  • Gets the short branch name from a full branch reference.

    Parameters

    • options: {
          fullBranchRef: string;
      } & GitCommonOptions

    Returns string | null

    The short branch name if successful, null otherwise

  • Parameters

    • fullBranchRef: string
    • cwd: string

    Returns string | null

    Deprecated

    Use object params version