public static string ProcessSubmodulePatch(GitModule module, PatchApply.Patch patch)
 {
     string text = patch != null ? patch.Text : null;
     var status = GetSubmoduleStatus(text);
     if (status == null)
         return "";
     return ProcessSubmoduleStatus(module, status);
 }
Beispiel #2
0
        private Patch GetPatch(PatchApply.PatchManager patchManager, string fileName, string oldFileName)
        {
            foreach (Patch p in patchManager.Patches)
                if (fileName == p.FileNameB &&
                    (fileName == p.FileNameA || oldFileName == p.FileNameA))
                    return p;

            return patchManager.Patches.Count > 0 ? patchManager.Patches[patchManager.Patches.Count - 1] : null;
        }
 public static string ProcessSubmodulePatch(GitModule module, string fileName, PatchApply.Patch patch)
 {
     string text = patch != null ? patch.Text : null;
     var status = GitCommandHelpers.GetSubmoduleStatus(text, module, fileName);
     if (status == null)
         return "";
     return ProcessSubmoduleStatus(module, status);
 }