]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: convert internal structs to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 1 May 2017 02:29:03 +0000 (02:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 May 2017 01:48:20 +0000 (10:48 +0900)
commitd7e6b6a8dcc8a98a4dcf6bc291f1e68b1acaecae
tree796b4889c03671932630ba250f1eb61d808a56ea
parent8bc095f7d5b847501e06e8bc1eafc50a314b99b9
fast-import: convert internal structs to struct object_id

Convert struct tree_entry_ms, struct branch, struct tag, and struct
hash_list to use struct object_id by changing the definition and
applying the following semantic patch, plus the standard object_id
transforms:

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

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

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

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

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

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

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

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

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c