Function gitPaths

  • Converts an array of operating-system relative paths to Git relative paths. See also gitPath, sysPath, and sysPaths.

    Git and git-annex commands use forward slash path separators regardless of platform. The gitPaths function performs the conversions when necessary.

    Parameters

    • relativePaths: string[]

      The relative paths to convert.

    Returns string[]

    The converted relative paths.