MCPcopy Create free account
hub / github.com/AGWA/git-crypt / git_checkout_batch

Function git_checkout_batch

commands.cpp:192–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static 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
215static bool git_checkout (const std::vector<std::string>& paths)
216{

Callers 1

git_checkoutFunction · 0.85

Calls 2

successful_exitFunction · 0.85
exec_commandFunction · 0.85

Tested by

no test coverage detected