MCPcopy Create free account
hub / github.com/libgit2/git2go / set_callback_error

Function set_callback_error

wrapper.c:103–111  ·  view source on GitHub ↗

* Sets the thread-local error to the provided string. This needs to happen in * C because Go might change Goroutines _just_ before returning, which would * lose the contents of the error message. */

Source from the content-addressed store, hash-verified

101 * lose the contents of the error message.
102 */
103static int set_callback_error(char *error_message, int ret)
104{
105 if (error_message != NULL) {
106 if (ret < 0)
107 git_error_set_str(GIT_ERROR_CALLBACK, error_message);
108 free(error_message);
109 }
110 return ret;
111}
112
113void _go_git_populate_apply_callbacks(git_apply_options *options)
114{

Callers 15

commit_create_callbackFunction · 0.85
completion_callbackFunction · 0.85
credentials_callbackFunction · 0.85
update_tips_callbackFunction · 0.85
pack_progress_callbackFunction · 0.85
smart_transport_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…