| 2777 | } |
| 2778 | |
| 2779 | static bool IsGitTerminalStatus(const std::string& status) { |
| 2780 | return status.find("\"state\":\"done\"") != std::string::npos |
| 2781 | || status.find("\"state\":\"error\"") != std::string::npos |
| 2782 | || status.find("\"state\":\"canceled\"") != std::string::npos; |
| 2783 | } |
| 2784 | |
| 2785 | static std::string EscapeJsonString(const std::string& input) { |
| 2786 | std::string output; |