Пример #1
0
 public static string ConfigGet(string key)
 {
     try {
         return(ShellHelpers.OutputFromCommand("git", "config --get " + key));
     } catch {
         _isWorking = false;
         return(null);
     }
 }
Пример #2
0
 public static string GetDiff(string path, bool wordDiff)
 {
     try {
         string diffParams = wordDiff ? "--word-diff=porcelain " : "";
         return(ShellHelpers.OutputFromCommand("git", "diff --submodule=log " + diffParams + "-- " + QuotePath(path)));
     } catch {
         _isWorking = false;
         return(null);
     }
 }
Пример #3
0
 public static void RemovePath(string path)
 {
     ShellHelpers.OutputFromCommand("git", "rm -- " + QuotePath(path));
 }
Пример #4
0
 public static void UnstagePath(string path)
 {
     ShellHelpers.OutputFromCommand("git", "reset HEAD -- " + QuotePath(path));
 }
Пример #5
0
 public static void StagePath(string path)
 {
     ShellHelpers.OutputFromCommand("git", "add --ignore-errors -- " + QuotePath(path));
 }