GitUI.Editor.FileViewer.GetFileText C# (CSharp) Method

GetFileText() private static method

private static GetFileText ( string fileName ) : string
fileName string
return string
        private static string GetFileText(string fileName)
        {
            string path;
            if (File.Exists(fileName))
                path = fileName;
            else
                path = GitCommands.Settings.WorkingDir + fileName;

            return !File.Exists(path) ? null : FileReader.ReadFileContent(path, GitCommands.Settings.Encoding);
        }