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

Re: Funny reflog has missing space

From
Junio C Hamano <junkio@cox.net>
Date
Feb 27, 2007, 20:32 UTC
Message-ID
<7vslcrcpeg.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7v4pp7flew.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 17 quoted lines
> Andy Parkins <andyparkins@gmail.com> writes:
>
>> Hello,
>>
>> I've just peeked in my reflog (tail .git/logs/HEAD), and found something 
>> strange:
>>
>> 72160ca5c05fab4fbd3c24c9b13cbd0651b60532 
>> ca7b20e2677960cfc52c525b8f8bdf12ce79176b Andy Parkins <long@emailaddress.com> 
>> 1172589175 +0000commit: Log message goes here
>>
>> Notice that there is no space between the "+0000" and the "commit".
>> ...
>> Is this normal?  "git-reflog show" works fine in both cases.
>
> It is not.  It would be good to find out who puts corrupted
> entry.

Hmmm. I am puzzled. The only two low-level locations I know of that writes into reflog are:

 * builtin-reflog.c::expire_reflog_ent() copies existing log
   entry, which are parsed out, after reformatting it.  It has
   an explicit "\t" in the format string, so it is not it.
 * refs.c::log_ref_write() gets an optional log message and
   writes it after the GMT offset, with an explicit "\t", so
   this is not it, either.
Previous: Junio C HamanoNext: Andy Parkins
Message 4 of 5 in “Funny reflog has missing space”
  1. Andy ParkinsFeb 27, 2007
  2. Johannes SchindelinFeb 27, 2007
  3. Junio C HamanoFeb 27, 2007
  4. Junio C HamanoFeb 27, 2007
  5. OT: Funny tab behaviour on terminalsAndy Parkins, Feb 28, 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.