Re: [PATCH 10/20] notes-merge: convert struct notes_merge_pair to struct object_id
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 31, 2016, 10:51 UTC
- Message-ID
- <alpine.DEB.2.20.1608311250170.129229@virtualbox>
- In-Reply-To
- <20160828232757.373278-11-sandals@crustytoothpaste.net>
Hi Brian,
On Sun, 28 Aug 2016, brian m. carlson wrote:
Show 11 quoted lines
> assert(!"Invalid existing change recorded");
> } else {
> - hashcpy(mp->obj, obj);
> - hashcpy(mp->base, p->one->oid.hash);
> - hashcpy(mp->local, uninitialized);
> - hashcpy(mp->remote, p->two->oid.hash);
> + hashcpy(mp->obj.hash, obj);
> + oidcpy(&mp->base, &p->one->oid);
> + hashcpy(mp->local.hash, uninitialized);
> + oidcpy(&mp->remote, &p->two->oid);
> len++;This puzzled me at first, and a little bit of digging revealed that obj is a local variable and uninitialized is a file-local variable. I would have thought that these would be converted to object_id's, too...
I guess that's left for later?
Ciao, Dscho