gatelineAPI reference
  • A repository's id, in precedence order: an id: stated in the config, else the id its origin URL gives, else local/<name>, where the name is the config entry's name or else the directory's basename (§6, R1).

    Throws RepositoryIdError when the result breaks the rules above, naming what the operator can change.

    Parameters

    • input: { dir: string; explicitId?: string; name?: string; origin: null | string }
      • dir: string

        The repository's top directory.

      • OptionalexplicitId?: string

        The config entry's id:.

      • Optionalname?: string

        The config entry's name.

      • origin: null | string

        What git remote get-url origin printed, or null when there is no origin.

    Returns DerivedRepositoryId