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

Re: [PATCH] Fix delta integer overflows

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 7, 2017, 23:02 UTC
Message-ID
<xmqqzibbm16o.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqqwp6fnjpg.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
> This is not about where the bar is set.  It is about expectation....

After having thought about this a bit more, I think in the message I am responding to I mischaracterised the aspect of a patch that influences the "expectation". It is much less about who the contributor is but more about what the patch does.

If the patch in question were from a more experienced contributor (like you or Peff), my internal reaction would have been "gee, the submitter should have known better that a more complete fix should involve a larger integral type, not stopping at matching the largest type that happens to be used in the interface without updating the interface".

But I still would have said that the patch is an improvement--as it indeed is; it does not make things worse anywhere and brings in a more consistency. And I still would have mentioned the same "in the longer term, we would want to use size_t or uintmax_t here, not just ulong".

The only thing I would have done differently if the submission were by a more experienced contributor is that I probably would have added "yes this may be an improvement, but I expected you should know better to at least mention the longer term direction to use size_t or uintmax_t in the log message, even if you didn't immediately extend this patch into a more complete series".

That one is a difference of expectation between an occasional contributor and an experienced one.

Previous: Junio C HamanoNext: Martin Koegler
Message 7 of 11 in “Fix delta integer overflows”
  1. Fix delta integer overflowsMartin Koegler, Aug 7, 2017
  2. Junio C HamanoAug 7, 2017
  3. Johannes SchindelinAug 7, 2017
  4. Junio C HamanoAug 7, 2017
  5. Johannes SchindelinAug 7, 2017
  6. Junio C HamanoAug 7, 2017
  7. Junio C HamanoAug 7, 2017
  8. Martin KoeglerAug 8, 2017
  9. Johannes SchindelinAug 8, 2017
  10. Junio C HamanoAug 8, 2017
  11. Martin KoeglerAug 8, 2017

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.