cache: convert struct cache_entry to use struct object_id
commit99d1a9861ae88595e7386c453b6b38573a8a570c
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 5 Sep 2016 20:07:52 +0000 (5 20:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Sep 2016 19:59:42 +0000 (7 12:59 -0700)
tree670664666d85bb83d7d80b83904c25adb5b7029a
parent6ebdac1bab966b720d776aa43ca188fe378b1f4b
cache: convert struct cache_entry to use struct object_id

Convert struct cache_entry to use struct object_id by applying the
following semantic patch and the object_id transforms from contrib, plus
the actual change to the struct:

@@
struct cache_entry E1;
@@
- E1.sha1
+ E1.oid.hash

@@
struct cache_entry *E1;
@@
- E1->sha1
+ E1->oid.hash

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
26 files changed:
builtin/apply.c
builtin/blame.c
builtin/checkout.c
builtin/fsck.c
builtin/grep.c
builtin/ls-files.c
builtin/merge-index.c
builtin/read-tree.c
builtin/rm.c
builtin/submodule--helper.c
builtin/update-index.c
cache-tree.c
cache.h
diff-lib.c
diff.c
dir.c
entry.c
merge-recursive.c
read-cache.c
rerere.c
resolve-undo.c
revision.c
sha1_name.c
t/helper/test-dump-split-index.c
tree.c
unpack-trees.c