]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
sha1_file: convert write_sha1_file to object_id
authorPatryk Obara <patryk.obara@gmail.com>
Sun, 28 Jan 2018 00:13:19 +0000 (01:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jan 2018 18:42:36 +0000 (10:42 -0800)
commita09c985eae694db1cf31c72db0e2e1bf42f1274f
tree3acdfc26ab59d2ac822e4b4cf6ad93bf746fb65d
parentbbca96d579b31900c9c0ad39299a3c9a3bd276f9
sha1_file: convert write_sha1_file to object_id

Convert the definition and declaration of write_sha1_file to
struct object_id and adjust usage of this function.

This commit also converts static function write_sha1_file_prepare, as it
is closely related.

Rename these functions to write_object_file and
write_object_file_prepare respectively.

Replace sha1_to_hex, hashcpy and hashclr with their oid equivalents
wherever possible.

Signed-off-by: Patryk Obara <patryk.obara@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
18 files changed:
apply.c
builtin/checkout.c
builtin/mktag.c
builtin/mktree.c
builtin/notes.c
builtin/receive-pack.c
builtin/replace.c
builtin/tag.c
builtin/unpack-objects.c
cache-tree.c
cache.h
commit.c
match-trees.c
merge-recursive.c
notes-cache.c
notes.c
read-cache.c
sha1_file.c