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

Re: git rev-list %an, %ae, %at bug in v1.7.10.1 and beyond

From
Jeff King <peff@peff.net>
Date
May 22, 2012, 06:13 UTC
Message-ID
<20120522061328.GA17896@sigill.intra.peff.net>
In-Reply-To
<20120522055811.GA10597@sigill.intra.peff.net>
On Tue, May 22, 2012 at 01:58:11AM -0400, Jeff King wrote:
Show 17 quoted lines
>   $ git init
>   $ echo content >foo && git add foo
>   $ GIT_AUTHOR_NAME=a git commit -m msg
>    Author:  <>
>    1 file changed, 1 insertion(+)
>    create mode 100644 foo
> 
> Uh oh, that's odd. And worse:
> 
>   $ git log -1 --format='|%an <%ae>|'
>   | <>|
> 
> So there is definitely a bug. The unicode thing is a red herring, and if
> there was any unicode at some point, git stripped it out when making the
> commit. The real regression seems to be in single-character names.
> 
> I'll see if I can find the bug.

Both are caused by an off-by-one error in split_ident_line. I just posted a patch.

-Peff
Previous: Jeff King
Message 6 of 6 in “git rev-list %an, %ae, %at bug in v1.7.10.1 and beyond”
  1. Bryan TurnerMay 21, 2012
  2. Jeff KingMay 22, 2012
  3. Jeff KingMay 22, 2012
  4. Bryan TurnerMay 22, 2012
  5. Jeff KingMay 22, 2012
  6. Jeff KingMay 22, 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.