예제 #1
0
 public IBodyFile Show(string revision, string filePath)
 {
     using (var bodyFile = git.Show(revision, filePath))
     {
         return(GitBodyFile.Parse(bodyFile));
     }
 }
예제 #2
0
        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);
        }