* 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. */
| 101 | * lose the contents of the error message. |
| 102 | */ |
| 103 | static 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 | |
| 113 | void _go_git_populate_apply_callbacks(git_apply_options *options) |
| 114 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…