| 213 | } |
| 214 | |
| 215 | static bool git_checkout (const std::vector<std::string>& paths) |
| 216 | { |
| 217 | auto paths_begin(paths.begin()); |
| 218 | while (paths.end() - paths_begin >= GIT_CHECKOUT_BATCH_SIZE) { |
| 219 | if (!git_checkout_batch(paths_begin, paths_begin + GIT_CHECKOUT_BATCH_SIZE)) { |
| 220 | return false; |
| 221 | } |
| 222 | paths_begin += GIT_CHECKOUT_BATCH_SIZE; |
| 223 | } |
| 224 | return git_checkout_batch(paths_begin, paths.end()); |
| 225 | } |
| 226 | |
| 227 | static bool same_key_name (const char* a, const char* b) |
| 228 | { |
no test coverage detected