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

Re: [PATCH] revert: clarify seemingly bogus OPT_END repetition

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 6, 2016, 07:28 UTC
Message-ID
<alpine.DEB.2.20.1607060906550.6426@virtualbox>
In-Reply-To
<20160705204447.GB14496@sigill.intra.peff.net>
Hi Peff,
On Tue, 5 Jul 2016, Jeff King wrote:
Show 6 quoted lines
> +	ALLOC_ARRAY(ret, st_add3(a_len, b_len, 1));
> +	for (i = 0; i < a_len; i++)
> +		ret[i] = a[i];
> +	for (i = 0; i < b_len; i++)
> +		ret[a_len + i] = b[i];
> +	ret[a_len + b_len] = b[b_len]; /* final OPTION_END */

Not really a big deal, but I'd have written "i <= b_len" in the for loop and avoided the final line. However, your version is clearer.

Ciao, Dscho

Previous: Eric WongNext: Johannes Schindelin
Message 11 of 13 in “revert: clarify seemingly bogus OPT_END repetition”
  1. revert: clarify seemingly bogus OPT_END repetitionJohannes Schindelin, Jul 5, 2016
  2. Jeff KingJul 5, 2016
  3. Jeff KingJul 5, 2016
  4. Jacob KellerJul 5, 2016
  5. Johannes SchindelinJul 6, 2016
  6. Michael J GruberJul 6, 2016
  7. Over-/underquoting, was Re: [PATCH] revert: clarify seemingly bogus OPT_END repetitionJohannes Schindelin, Jul 6, 2016
  8. Jacob KellerJul 6, 2016
  9. Michael J GruberJul 9, 2016
  10. Eric WongJul 9, 2016
  11. Johannes SchindelinJul 6, 2016
  12. Johannes SchindelinJul 6, 2016
  13. Jeff KingJul 6, 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.