src/SyncTool.Git/main/FileSystem/Versioning/GitBasedFileSystemSnapshot.cs
/// <summary>
/// Translates the path of a git-tracked fileto the path of the corresponding file in the snapshot
/// </summary>
Translates the path of a git-tracked fileto the path of the corresponding file in the snapshot
Translates the path of a git - tracked fileto the path of the corresponding file in the snapshot
internal static string GetPathForGitPath(string path)
        {
            return path
                .Replace("\\", "/")
                .Substring(0, path.Length - FilePropertiesFile.FileNameSuffix.Length)
                .Remove(0, SnapshotDirectoryName.Length);
        }
internal static string GetPathForGitPath ( string path ) { return path . Replace ( " \\ " , " " ) . Substring ( 0 , path . Length - FilePropertiesFile . FileNameSuffix . Length ) . Remove ( 0 , SnapshotDirectoryName . Length ) ; }
Translates the path of a git-tracked fileto the path of the corresponding file in the snapshot
Translates the path of a git - tracked fileto the path of the corresponding file in the snapshot
// normalize slashes // remove suffix added to the file name // remove the directory name at the beginning of the file (snapshots are created in a directory within the repository)
path
string