public void ViewCurrentChanges(string fileName, string oldFileName, bool staged, bool isSubmodule)
 {
     if (!isSubmodule)
     {
         _async.Load(() => Module.GetCurrentChanges(fileName, oldFileName, staged, GetExtraDiffArguments(), Encoding),
                     ViewStagingPatch);
     }
     else
     {
         _async.Load(() => Module.GetCurrentChanges(fileName, oldFileName, staged, GetExtraDiffArguments(), Encoding),
                     ViewSubmodulePatch);
     }
 }
 public void ViewCurrentChanges(string fileName, string oldFileName, bool staged,
                                bool isSubmodule, Task <GitSubmoduleStatus> status)
 {
     if (!isSubmodule)
     {
         _async.Load(() => Module.GetCurrentChanges(fileName, oldFileName, staged, GetExtraDiffArguments(), Encoding),
                     ViewStagingPatch);
     }
     else if (status != null)
     {
         _async.Load(() =>
         {
             if (status.Result == null)
             {
                 return(string.Format("Submodule \"{0}\" has unresolved conflicts", fileName));
             }
             return(LocalizationHelpers.ProcessSubmoduleStatus(Module, status.Result));
         }, ViewPatch);
     }
     else
     {
         _async.Load(() => LocalizationHelpers.ProcessSubmodulePatch(Module, fileName,
                                                                     Module.GetCurrentChanges(fileName, oldFileName, staged, GetExtraDiffArguments(), Encoding)), ViewPatch);
     }
 }
Exemple #3
0
 public void ViewCurrentChanges(string fileName, string oldFileName, bool staged)
 {
     _async.Load(() => Settings.Module.GetCurrentChanges(fileName, oldFileName, staged, GetExtraDiffArguments()), ViewStagingPatch);
 }
Exemple #4
0
 public void ViewCurrentChanges(string fileName, string oldFileName, bool staged)
 {
     _async.Load(() => GitCommandHelpers.GetCurrentChanges(fileName, oldFileName, staged, GetExtraDiffArguments()), ViewStagingPatch);
 }