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

Function _go_git_diff_blobs

wrapper.c:212–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212int _go_git_diff_blobs(
213 git_blob *old,
214 const char *old_path,
215 git_blob *new,
216 const char *new_path,
217 git_diff_options *opts,
218 int eachFile,
219 int eachHunk,
220 int eachLine,
221 void *payload)
222{
223 git_diff_file_cb fcb = NULL;
224 git_diff_hunk_cb hcb = NULL;
225 git_diff_line_cb lcb = NULL;
226
227 if (eachFile)
228 fcb = (git_diff_file_cb)&diffForEachFileCallback;
229 if (eachHunk)
230 hcb = (git_diff_hunk_cb)&diffForEachHunkCallback;
231 if (eachLine)
232 lcb = (git_diff_line_cb)&diffForEachLineCallback;
233
234 return git_diff_blobs(old, old_path, new, new_path, opts, fcb, NULL, hcb, lcb, payload);
235}
236
237void _go_git_setup_diff_notify_callbacks(git_diff_options *opts)
238{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…