diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-28 14:26:57 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-12-01 11:54:57 +0000 |
commit | 168fe39bea3368972a8b1a33d5908e73bc790c18 (patch) | |
tree | c6d07340e2d8d2d66091c44c7763f3e1823acca2 /src/blame_git.c | |
parent | 18e71e6d597abe6c7feb666429c921bd19dc0ba8 (diff) | |
download | libgit2-168fe39bea3368972a8b1a33d5908e73bc790c18.tar.gz |
object_type: use new enumeration namesethomson/index_fixes
Use the new object_type enumeration names within the codebase.
Diffstat (limited to 'src/blame_git.c')
-rw-r--r-- | src/blame_git.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blame_git.c b/src/blame_git.c index 302cd1e23..552f3f35b 100644 --- a/src/blame_git.c +++ b/src/blame_git.c @@ -43,7 +43,7 @@ static int make_origin(git_blame__origin **out, git_commit *commit, const char * int error = 0; if ((error = git_object_lookup_bypath(&blob, (git_object*)commit, - path, GIT_OBJ_BLOB)) < 0) + path, GIT_OBJECT_BLOB)) < 0) return error; GITERR_CHECK_ALLOC_ADD(&alloc_len, sizeof(*o), path_len); @@ -257,7 +257,7 @@ static void split_blame(git_blame *blame, git_blame__entry *split, git_blame__en } } -/* +/* * After splitting the blame, the origins used by the on-stack blame_entry * should lose one refcnt each. */ @@ -486,7 +486,7 @@ static int pass_whole_blame(git_blame *blame, if (!porigin->blob && git_object_lookup((git_object**)&porigin->blob, blame->repository, - git_blob_id(origin->blob), GIT_OBJ_BLOB) < 0) + git_blob_id(origin->blob), GIT_OBJECT_BLOB) < 0) return -1; for (e=blame->ent; e; e=e->next) { if (!same_suspect(e->suspect, origin)) |