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);
}