diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-05-01 02:28:56 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-02 10:46:41 +0900 |
commit | e0a92804044a4025fc8abbfa1d92fd16f6f2e1f4 (patch) | |
tree | 43f7723d39de8b7b83d977c16be5ef82697f04e8 /revision.c | |
parent | Clean up outstanding object_id transforms. (diff) | |
download | tgif-e0a92804044a4025fc8abbfa1d92fd16f6f2e1f4.tar.xz |
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>
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c index 7ff61ff5f7..2b56c3baf0 100644 --- a/revision.c +++ b/revision.c @@ -1249,7 +1249,7 @@ static void add_cache_tree(struct cache_tree *it, struct rev_info *revs, int i; if (it->entry_count >= 0) { - struct tree *tree = lookup_tree(it->sha1); + struct tree *tree = lookup_tree(it->oid.hash); add_pending_object_with_path(revs, &tree->object, "", 040000, path->buf); } |