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

Re: [PATCH 2/2] branch: clean up repeated strlen

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 19, 2009, 11:31 UTC
Message-ID
<alpine.DEB.1.00.0902191231050.6223@intel-tinevez-2-302>
In-Reply-To
<20090219033545.GB18970@coredump.intra.peff.net>
Hi,
On Wed, 18 Feb 2009, Jeff King wrote:
Show 8 quoted lines
> Commit 45e2b61 fixed the initialization of a "len" struct
> parameter via strlen. We can use that to clean up what is
> now 3 strlens in a 6-line sequence.
> 
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> I guess a good compiler could optimize these out, but I think it
> actually reads a little bit nicer.
Definitely.  And thanks for the tests!

Ciao, Dscho

Previous: Jeff King
Message 12 of 12 in “Avoid segfault with 'git branch' when the HEAD is detached”
  1. Avoid segfault with 'git branch' when the HEAD is detachedJohannes Schindelin, Feb 18, 2009
  2. Jay SoffianFeb 18, 2009
  3. Jeff KingFeb 19, 2009
  4. Johannes SchindelinFeb 19, 2009
  5. Jeff KingFeb 19, 2009
  6. Jeff KingFeb 19, 2009
  7. 1/2 add basic branch display testsJeff King, Feb 19, 2009
  8. Jeff KingFeb 19, 2009
  9. Jay SoffianFeb 19, 2009
  10. Jeff KingFeb 19, 2009
  11. 2/2 branch: clean up repeated strlenJeff King, Feb 19, 2009
  12. Johannes SchindelinFeb 19, 2009

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.