public static bool InTheMiddleOfPatch() { return !File.Exists(GetRebaseDir() + "rebasing") && Directory.Exists(GetRebaseDir()); }