parse() public method

public parse ( Stream iStream ) : void
iStream Stream
return void
Exemplo n.º 1
0
 protected static GitSharp.Core.Patch.Patch ParseTestPatchFile(string patchFile)
 {
     try
     {
         using (var inStream = new FileStream(patchFile, System.IO.FileMode.Open))
         {
             var p = new GitSharp.Core.Patch.Patch();
             p.parse(inStream);
             return p;
         }
     }
     catch(IOException)
     {
         Assert.Fail("No " + patchFile + " test vector");
         return null; // Never happens
     }
 }
Exemplo n.º 2
0
 protected static GitSharp.Core.Patch.Patch ParseTestPatchFile(string patchFile)
 {
     try
     {
         using (var inStream = new FileStream(patchFile, System.IO.FileMode.Open))
         {
             var p = new GitSharp.Core.Patch.Patch();
             p.parse(inStream);
             return(p);
         }
     }
     catch (IOException)
     {
         Assert.Fail("No " + patchFile + " test vector");
         return(null);                // Never happens
     }
 }