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

[PATCH v2 0/4] Fix some constness errors in fetch-pack

From
mhagger@alum.mit.edu <mhagger@alum.mit.edu>
Date
May 21, 2012, 07:59 UTC
Message-ID
<1337587199-21099-1-git-send-email-mhagger@alum.mit.edu>
From: Michael Haggerty <mhagger@alum.mit.edu>

Fix some constness errors that I noticed while reading the code in builtin/fetch-pack.c.

This version differs from v1 as follows:
* cmd_fetch_pack() is not made to free the memory that it allocates.
* The second patch is broken into separate pieces to make each piece
  more readable.
Michael Haggerty (4):
  cmd_fetch_pack(): declare dest to be const
  cmd_fetch_pack(): handle non-option arguments outside of the loop
  cmd_fetch_pack(): combine the loop termination conditions
  cmd_fetch_pack(): respect constness of argv parameter
 builtin/fetch-pack.c |  145 ++++++++++++++++++++++++--------------------------
 1 file changed, 71 insertions(+), 74 deletions(-)
-- 
1.7.10
Next: mhagger@alum.mit.edu
Message 1 of 5 in “Fix some constness errors in fetch-pack”
  1. 0/4 Fix some constness errors in fetch-packmhagger@alum.mit.edu, May 21, 2012
  2. 1/4 cmd_fetch_pack(): declare dest to be constmhagger@alum.mit.edu, May 21, 2012
  3. 2/4 cmd_fetch_pack(): handle non-option arguments outside of the loopmhagger@alum.mit.edu, May 21, 2012
  4. 3/4 cmd_fetch_pack(): combine the loop termination conditionsmhagger@alum.mit.edu, May 21, 2012
  5. 4/4 cmd_fetch_pack(): respect constness of argv parametermhagger@alum.mit.edu, May 21, 2012

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.