diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2018-01-28 03:13:11 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-30 21:42:35 +0300 |
commit | 829e5c3b9276a2369452a119faec234276b7ecbb (patch) | |
tree | 82fe18c36999ed42d4c2e3ca98ea443deaec69fd /blame.c | |
parent | 5be1f00a9a701532232f57958efab4be8c959a29 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |