示例#1
0
 public XmlFilePluginBase(GitFolder f, NormalizedPath branchPath, NormalizedPath filePath, Encoding encoding)
     : base(f.FileSystem, filePath, encoding)
 {
     if (!filePath.StartsWith(branchPath))
     {
         throw new ArgumentException($"Path {filePath} must start with folder {f.SubPath}.");
     }
     _pluginImpl = new GitBranchPluginImpl(f, branchPath);
 }
示例#2
0
 /// <summary>
 /// Initializes a new plugin for a branch.
 /// </summary>
 /// <param name="f">The folder.</param>
 /// <param name="branchPath">The actual branch.</param>
 protected GitBranchPluginBase(GitFolder f, NormalizedPath branchPath)
 {
     _pluginImpl = new GitBranchPluginImpl(f, branchPath);
 }