summaryrefslogtreecommitdiff
path: root/blame.c
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2018-01-28 00:13:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-30 18:42:35 (GMT)
commit829e5c3b9276a2369452a119faec234276b7ecbb (patch)
tree82fe18c36999ed42d4c2e3ca98ea443deaec69fd /blame.c
parent5be1f00a9a701532232f57958efab4be8c959a29 (diff)
downloadgit-829e5c3b9276a2369452a119faec234276b7ecbb.zip
git-829e5c3b9276a2369452a119faec234276b7ecbb.tar.gz
git-829e5c3b9276a2369452a119faec234276b7ecbb.tar.bz2
sha1_file: convert pretend_sha1_file to object_id
Convert the declaration and definition of pretend_sha1_file to use struct object_id and adjust all usages of this function. Rename it to pretend_object_file. Signed-off-by: Patryk Obara <patryk.obara@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blame.c')
-rw-r--r--blame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blame.c b/blame.c
index 2893f3c..1fc22b3 100644
--- a/blame.c
+++ b/blame.c
@@ -232,7 +232,7 @@ static struct commit *fake_working_tree_commit(struct diff_options *opt,
convert_to_git(&the_index, path, buf.buf, buf.len, &buf, 0);
origin->file.ptr = buf.buf;
origin->file.size = buf.len;
- pretend_sha1_file(buf.buf, buf.len, OBJ_BLOB, origin->blob_oid.hash);
+ pretend_object_file(buf.buf, buf.len, OBJ_BLOB, &origin->blob_oid);
/*
* Read the current index, replace the path entry with