]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sha1_file: convert sha1_object_info* to object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 12 Mar 2018 02:27:46 +0000 (02:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Mar 2018 16:23:49 +0000 (09:23 -0700)
commitabef9020e3df87c441c9a3a95f592fce5fa49bb9
treeb04714a271049de3d7402e20e868beb5cee30995
parent7984f23833d1c1b8d7d5d863ed8c42b67e0a0fba
sha1_file: convert sha1_object_info* to object_id

Convert sha1_object_info and sha1_object_info_extended to take pointers
to struct object_id and rename them to use "oid" instead of "sha1" in
their names.  Update the declaration and definition and apply the
following semantic patch, plus the standard object_id transforms:

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

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

@@
expression E1, E2, E3;
@@
- sha1_object_info_extended(E1.hash, E2, E3)
+ oid_object_info_extended(&E1, E2, E3)

@@
expression E1, E2, E3;
@@
- sha1_object_info_extended(E1->hash, E2, E3)
+ oid_object_info_extended(E1, E2, E3)

Signed-off-by: Junio C Hamano <gitster@pobox.com>
33 files changed:
archive-tar.c
archive-zip.c
blame.c
builtin/blame.c
builtin/cat-file.c
builtin/describe.c
builtin/fast-export.c
builtin/fetch.c
builtin/fsck.c
builtin/index-pack.c
builtin/ls-tree.c
builtin/mktree.c
builtin/pack-objects.c
builtin/prune.c
builtin/replace.c
builtin/tag.c
builtin/unpack-objects.c
cache.h
diff.c
fast-import.c
list-objects-filter.c
object.c
pack-bitmap-write.c
packfile.c
reachable.c
refs.c
remote.c
sequencer.c
sha1_file.c
sha1_name.c
streaming.c
submodule.c
tag.c