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

Function _go_git_diff_foreach

wrapper.c:196–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196int _go_git_diff_foreach(git_diff *diff, int eachFile, int eachHunk, int eachLine, void *payload)
197{
198 git_diff_file_cb fcb = NULL;
199 git_diff_hunk_cb hcb = NULL;
200 git_diff_line_cb lcb = NULL;
201
202 if (eachFile)
203 fcb = (git_diff_file_cb)&diffForEachFileCallback;
204 if (eachHunk)
205 hcb = (git_diff_hunk_cb)&diffForEachHunkCallback;
206 if (eachLine)
207 lcb = (git_diff_line_cb)&diffForEachLineCallback;
208
209 return git_diff_foreach(diff, fcb, NULL, hcb, lcb, payload);
210}
211
212int _go_git_diff_blobs(
213 git_blob *old,

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…