| 190 | } |
| 191 | |
| 192 | static bool git_checkout_batch (std::vector<std::string>::const_iterator paths_begin, std::vector<std::string>::const_iterator paths_end) |
| 193 | { |
| 194 | if (paths_begin == paths_end) { |
| 195 | return true; |
| 196 | } |
| 197 | |
| 198 | std::vector<std::string> command; |
| 199 | |
| 200 | command.push_back("git"); |
| 201 | command.push_back("checkout"); |
| 202 | command.push_back("--"); |
| 203 | |
| 204 | for (auto path(paths_begin); path != paths_end; ++path) { |
| 205 | command.push_back(*path); |
| 206 | } |
| 207 | |
| 208 | if (!successful_exit(exec_command(command))) { |
| 209 | return false; |
| 210 | } |
| 211 | |
| 212 | return true; |
| 213 | } |
| 214 | |
| 215 | static bool git_checkout (const std::vector<std::string>& paths) |
| 216 | { |
no test coverage detected