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

Function git_checkout

commands.cpp:215–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static 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
227static bool same_key_name (const char* a, const char* b)
228{

Callers 2

unlockFunction · 0.85
lockFunction · 0.85

Calls 1

git_checkout_batchFunction · 0.85

Tested by

no test coverage detected