]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.h
Convert struct cache_tree to use struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 1 May 2017 02:28:56 +0000 (02:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 May 2017 01:46:41 +0000 (10:46 +0900)
commite0a92804044a4025fc8abbfa1d92fd16f6f2e1f4
tree43f7723d39de8b7b83d977c16be5ef82697f04e8
parentfb4e352b4082a447c089151b1f2662844bda0354
Convert struct cache_tree to use struct object_id

Convert the sha1 member of struct cache_tree to struct object_id by
changing the definition and applying the following semantic patch, plus
the standard object_id transforms:

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

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

Fix up one reference to active_cache_tree which was not automatically
caught by Coccinelle.  These changes are prerequisites for converting
parse_object.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
builtin/fsck.c
cache-tree.c
cache-tree.h
merge-recursive.c
revision.c
sequencer.c
t/helper/test-dump-cache-tree.c