GitScc.GitRepository.TryGetRelativePath C# (CSharp) Method

TryGetRelativePath() private method

private TryGetRelativePath ( string fileName, string &relativePath ) : bool
fileName string
relativePath string
return bool
        private bool TryGetRelativePath(string fileName, out string relativePath)
        {
            relativePath = null;
            if (fileName.StartsWith(workingDirectory, StringComparison.OrdinalIgnoreCase))
            {
                relativePath = fileName.Substring(workingDirectory.Length);
                return true;
            }
            return false;
        }