mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
blame: update API
Use `size_t` for sizes, standardize naming with the rest of the library.
This commit is contained in:
@@ -97,7 +97,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[])
|
||||
while (i < rawsize) {
|
||||
const char *eol = memchr(rawdata + i, '\n', (size_t)(rawsize - i));
|
||||
char oid[10] = {0};
|
||||
const git_blame_hunk *hunk = git_blame_get_hunk_byline(blame, line);
|
||||
const git_blame_hunk *hunk = git_blame_hunk_byline(blame, line);
|
||||
|
||||
if (break_on_null_hunk && !hunk)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user