Make sha1_array_append take a struct object_id *
commit98a72ddc12e13231537150607f4a6a8ff8b43854
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 31 Mar 2017 01:39:56 +0000 (31 01:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Mar 2017 15:33:55 +0000 (31 08:33 -0700)
treeb519703af87417aa54f59f80f1a2d6d9ff7f7a8c
parentee3051bd2307cdc0145aa9ed9dcacb8acfc08c40
Make sha1_array_append take a struct object_id *

Convert the callers to pass struct object_id by changing the function
declaration and definition and applying the following semantic patch:

@@
expression E1, E2;
@@
- sha1_array_append(E1, E2.hash)
+ sha1_array_append(E1, &E2)

@@
expression E1, E2;
@@
- sha1_array_append(E1, E2->hash)
+ sha1_array_append(E1, E2)

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 files changed:
bisect.c
builtin/cat-file.c
builtin/diff.c
builtin/pack-objects.c
builtin/pull.c
builtin/receive-pack.c
combine-diff.c
connect.c
fetch-pack.c
fsck.c
parse-options-cb.c
sha1-array.c
sha1-array.h
sha1_name.c
submodule.c
t/helper/test-sha1-array.c
transport.c