public IBodyFile Show(string revision, string filePath) { using (var bodyFile = git.Show(revision, filePath)) { return(GitBodyFile.Parse(bodyFile)); } }
public static GitBodyFile Parse(Stream fileData) { TextReader reader = new StreamReader(fileData); GitBodyFile bodyFile = new GitBodyFile(); string line; while ((line = reader.ReadLine()) != null) { bodyFile.Add(line); } return(bodyFile); }