MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / gf_command_diagnostic

Function gf_command_diagnostic

src/mcp/test_impact_git.c:459–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459static void gf_command_diagnostic(cbm_git_facts_error_t *error, const gf_result_t *result) {
460 error->exit_code = result->exit_code;
461 size_t at = strlen(error->diagnostic);
462 if (result->err.length && at + 2 < sizeof(error->diagnostic)) {
463 error->diagnostic[at++] = ':';
464 error->diagnostic[at++] = ' ';
465 }
466 for (size_t i = 0; i < result->err.length && at + 1 < sizeof(error->diagnostic); i++) {
467 unsigned char c = result->err.data[i];
468 error->diagnostic[at++] = c >= 32 && c < 127 ? (char)c : ' ';
469 }
470 error->diagnostic[at] = '\0';
471}
472
473/* Observed file-size limits request cancellation. They are not instantaneous
474 * disk quotas; final retained bytes are bounded independently after quiescence. */

Callers 1

gf_run_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected