MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / gitStartPull

Method gitStartPull

Source/Wasm/WasmRuntime.cpp:2903–2920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2901}
2902
2903int64_t WasmRuntime::gitStartPull(String path, String branch, String token, bool force) {
2904#ifdef DORA_NO_WA
2905 DORA_UNUSED_PARAM(path);
2906 DORA_UNUSED_PARAM(branch);
2907 DORA_UNUSED_PARAM(token);
2908 DORA_UNUSED_PARAM(force);
2909 return 0;
2910#else // !DORA_NO_WA
2911 auto pathStr = path.toString();
2912 auto branchStr = branch.toString();
2913 auto tokenStr = token.toString();
2914 return WaGitStartPull(
2915 c_cast<char*>(pathStr.c_str()),
2916 c_cast<char*>(branchStr.c_str()),
2917 c_cast<char*>(tokenStr.c_str()),
2918 force ? 1 : 0);
2919#endif // !DORA_NO_WA
2920}
2921
2922std::string Git::poll(int64_t jobId) {
2923#ifdef DORA_NO_WA

Callers 1

WaGitStartPullFunction · 0.80

Calls 3

WaGitStartPullFunction · 0.70
toStringMethod · 0.65
c_strMethod · 0.45

Tested by

no test coverage detected