]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
merge-recursive: convert struct stage_data to use object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 24 Jun 2016 23:09:25 +0000 (23:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jun 2016 18:39:02 +0000 (11:39 -0700)
commitfd429e986de0fd380b63c0a1949b72ef076f58cc
treefaf5380d15e43cc46bb1b44684ea8488e1ee81a2
parent41c9560ee5f9fc4bd3c6580272bd292083a9fe18
merge-recursive: convert struct stage_data to use object_id

Convert the anonymous struct within struct stage_data to use struct
object_id.  The following Coccinelle semantic patch was used to
implement this, followed by the transformations in object_id.cocci:

@@
struct stage_data o;
expression E1;
@@
- o.stages[E1].sha
+ o.stages[E1].oid.hash

@@
struct stage_data *p;
expression E1;
@@
- p->stages[E1].sha
+ p->stages[E1].oid.hash

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