Function gitPath

  • Converts an operating-system relative path to a Git relative path. See also gitPaths, sysPath, and sysPaths.

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

    Parameters

    • relativePath: string

      The relative path to convert.

    Returns string

    The converted relative path.