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

Re: [PATCH 1/2] Sanitize for_each_reflog_ent()

From
Junio C Hamano <junkio@cox.net>
Date
Jan 8, 2007, 01:46 UTC
Message-ID
<7vr6u6z3x8.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0701080158500.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> It used to ignore the return value of the helper function; now, it
> expects it to return 0, and stops iteration upon non-zero return
> values; this value is then passed on as the return value of
> for_each_reflog_ent().
Good idea.
> Further, it makes no sense to force the parsing upon the helper
> functions; for_each_reflog_ent() now calls the helper function with
> old and new sha1, the email, the timestamp & timezone, and the message.

Perhaps. I did it that way deliberately because all existing users did not have to pay overhead of parsing.

Thanks. Will queue in 'pu' initially as I do not have much time to look at it tonight.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 7 in “Sanitize for_each_reflog_ent()”
  1. 1/2 Sanitize for_each_reflog_ent()Johannes Schindelin, Jan 8, 2007
  2. Junio C HamanoJan 8, 2007
  3. Johannes SchindelinJan 8, 2007
  4. Jakub NarebskiJan 9, 2007
  5. Johannes SchindelinJan 9, 2007
  6. Junio C HamanoJan 9, 2007
  7. Johannes SchindelinJan 9, 2007

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.