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

Function commit_create_callback

wrapper.c:119–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static int commit_create_callback(
120 git_oid *out,
121 const git_signature *author,
122 const git_signature *committer,
123 const char *message_encoding,
124 const char *message,
125 const git_tree *tree,
126 size_t parent_count,
127 const git_commit *parents[],
128 void *payload)
129{
130 char *error_message = NULL;
131 const int ret = commitCreateCallback(
132 &error_message,
133 out,
134 (git_signature *)author,
135 (git_signature *)committer,
136 (char *)message_encoding,
137 (char *)message,
138 (git_tree *)tree,
139 parent_count,
140 (git_commit **)parents,
141 payload
142 );
143 return set_callback_error(error_message, ret);
144}
145
146void _go_git_populate_rebase_callbacks(git_rebase_options *opts)
147{

Callers

nothing calls this directly

Calls 2

commitCreateCallbackFunction · 0.85
set_callback_errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…