git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 4/8] Rename struct diff_filespec's sha1_valid member.

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jun 7, 2016, 23:12 UTC
Message-ID
<20160607231246.GB72717@vauxhall.crustytoothpaste.net>
In-Reply-To
<xmqqmvmwq09p.fsf@gitster.mtv.corp.google.com>
On Tue, Jun 07, 2016 at 12:14:42PM -0700, Junio C Hamano wrote:
Show 20 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > On Tue, Jun 07, 2016 at 08:21:26AM +0200, Johannes Sixt wrote:
> >
> >> > diff --git a/combine-diff.c b/combine-diff.c
> >> > index f39be434..a20caa80 100644
> >> > --- a/combine-diff.c
> >> > +++ b/combine-diff.c
> >> > @@ -1269,7 +1269,7 @@ static struct diff_filepair *combined_pair(struct combine_diff_path *p,
> >> >   		pair->one[i].path = p->path;
> >> >   		pair->one[i].mode = p->parent[i].mode;
> >> >   		oidcpy(&pair->one->oid, &p->parent[i].oid);
> >> > -		pair->one[i].sha1_valid = !is_null_oid(&p->parent[i].oid);
> >> > +		pair->one->oid_valid = !is_null_oid(&p->parent[i].oid);
> >> 
> >> Is this transformation correct?
> >
> > Or the oidcpy() above it, which was introduced in patch 3.
> 
> Indeed these look wrong.

Yes, those do look wrong. I'll figure out where I went wrong when I reroll.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
Previous: Junio C HamanoNext: brian m. carlson
Message 8 of 15 in “Add basic Coccinelle transforms.”
  1. 1/8 Add basic Coccinelle transforms.brian m. carlson, Jun 7, 2016
  2. 2/8 Apply standard object_id Coccinelle transformations.brian m. carlson, Jun 7, 2016
  3. 3/8 Convert struct diff_filespec to struct object_idbrian m. carlson, Jun 7, 2016
  4. 4/8 Rename struct diff_filespec's sha1_valid member.brian m. carlson, Jun 7, 2016
  5. Johannes SixtJun 7, 2016
  6. Jeff KingJun 7, 2016
  7. Junio C HamanoJun 7, 2016
  8. brian m. carlsonJun 7, 2016
  9. 5/8 merge-recursive: convert struct stage_data to use object_idbrian m. carlson, Jun 7, 2016
  10. 6/8 merge-recursive: convert struct merge_file_info to object_idbrian m. carlson, Jun 7, 2016
  11. 7/8 merge-recursive: convert leaf functions to use struct object_idbrian m. carlson, Jun 7, 2016
  12. 8/8 merge-recursive: convert merge_recursive_generic to object_idbrian m. carlson, Jun 7, 2016
  13. Junio C HamanoJun 7, 2016
  14. brian m. carlsonJun 7, 2016
  15. Junio C HamanoJun 7, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.